Back to Questions

What are generations and how are they used by the garbage collector?

Your Answer

  • 12/18/2012 3:17:50 PM
  • Biju
  • 1

What are generations and how are they used by the garbage collector?

Generations are the division of objects on the managed heap used by the garbage collector. This mechanism allows the garbage collector to perform highly optimized garbage collection. The unreachable objects are placed in generation 0, the reachable objects are placed in generation 1, and the objects that survive the collection process are promoted to higher generations.

  • 12/18/2012 3:18:10 PM
  • test

Back to Questions