Types of generations in a garbage collector

List the types of generations there are in a garbage collector?

E

Expert

Verified

Memory management in the CLR is divided into the three generations which are made up by grouping memory segments. Generations improve the garbage collection performance. The three types of generations in a garbage collector are as follows:

Generation 0 – In this generation an object is initialized.

Generation 1 - Objects which are under garbage collection procedure are said to be in generation 1.

Generation 2 - Every time new objects that are produced and added to memory are consider in generation 0 and the old objects are in generation 1 are said to be in generation 2.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.