answersLogoWhite

0


Best Answer

The hugely simplistic version is that every time it garbage-collects, it starts by assuming everything to be garbage, then goes through and builds a list of everything reachable. Those become not-garbage, everything else doesn't, and gets thrown away. What makes it generational is that every time an object goes through this process and survives, it is noted as being a member of an older generation (up to 2, right now). When the garbage-collector is trying to free memory, it starts with the lowest generation (0) and only works up to higher ones if it can't free up enough space, on the grounds that shorter-lived objects are more likely to have been freed than longer-lived ones. Non-deterministic finalization implies that the destructor (if any) of an object will not necessarily be run (nor its memory cleaned up, but that's a relatively minor issue) immediately upon its going out of scope. Instead, it will wait until first the garbage collector gets around to finding it, and then the finalisation queue empties down to it; and if the process ends before this happens, it may not be finalised at all. (Although the operating system will usually clean up any process-external resources left open - note the usually there, especially as the exceptions tend to hurt a lot.)

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How does the generational garbage collector in the NET CLR manage object lifetime What is non-deterministic finalization?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Do Rolex watches come with lifetime warranties?

Yes, the lifetime of the watch. Not your lifetime.


Is lifetime a preposition?

No, "lifetime" is not a preposition. It is a noun that refers to the duration of a person's life or existence.


When was For a Lifetime created?

For a Lifetime was created in 1997.


Is project runway on lifetime or on stylecom?

Lifetime


Where can you watch lifetime movies?

You can watch lifetime... Well if you have comcast you can catch lifetime on channel 55. And if you want to watch Lifetime Movie Network you can watch it on 202.


You deleated your sims lifetime wish and you want it back?

you can get a lifetime reward that lets you change your lifetime wish


Which is correct an once-in-a-lifetime experience or a once-in-a-lifetime experience?

The correct phrase is "a once-in-a-lifetime experience." The article "a" is needed before "once-in-a-lifetime" to make it grammatically correct.


What channel is lifetime movie network on in Massachusetts?

lifetime


When was In a Lifetime created?

In a Lifetime was created in 1986-01.


Is there a dishwasher with a lifetime warranty?

There are no dishwashers with lifetime warranties. The parts to the dishwashers might have lifetime warranties, but not the complete dishwasher.


How do you change a sim's lifetime want?

you go to lifetime rewards and the n you but vhange lifetime wihes :) sorry if its not a good answer


Can you give me a sentence using once in a lifetime?

This job is a once in a lifetime opportunity.A once in a lifetime trip can be expensive.