answersLogoWhite

0


Best Answer

Memory management in the CLR is divided into three generations that are build up by grouping memory segments. Generations enhance the garbage collection performance. The following are the three types of generations found in a garbage collector:

  • Generation 0 - When an object is initialized, it is said to be in generation 0.
  • Generation 1 - The objects that are under garbage collection process are considered to be in generation 1.
  • Generation 2 - Whenever new objects are created and added to the memory, they are added to generation 0 and the old objects in generation 1 are considered to be in generation 2.
User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How many types of generations are there in a garbage collector?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How many types of Generations are there in GC garbage collector?

There are 3 generations gen 0 , gen 1 and gen 2.


How many generations does the garbage collection algorithm in NET support?

2


How many garbage patches are there in oceans?

1-4 thousand types of garbage patches


How many computer generations are there up to now?

many five types generation of computer


Why c plus plus does not have garbage collector?

Although the C++ standard does not provide a garbage collector, there's nothing to stop you from using one. There are many garbage collection libraries available, or you can write your own. However, garbage collection is not required in C++ because correct use of resource handles and smart pointers ensures there is never any garbage to collect. More importantly, resource handles and smart pointers incur little to no overhead. Shared resource handles do incur some cost, but that cost is negligible compared to the cost of managing shared resources through "naked" C-style pointers, let alone the cost of garbage collection.


How many recycling trash cans should I have?

The need to have different cans is the way that is needed to break your recycling down. The best thing to do is to call your local garbage collector and see what they would suggest.


How many generations are there in a millennium?

Ten generations


How many Corvette generations are there?

6 generations


How many generations are in a millennium?

Ten generations


How many pages does The Collector Collector have?

The Collector Collector by Tibor Fischer has 272 pages in the Penguin edition.


How many garbage disposal plants are their in Haryana?

How many garbage disposable plants are their in Haryana


How many generations are in 534 years?

19.07 generations