What is the Generation of Garbage Collector ?

Questions by sbehera02   answers by sbehera02

Showing Answers 1 - 3 of 3 Answers

rayhan21

  • Dec 20th, 2006
 

garbage collector has 3 generations 0,1,2

the highest generation is 2. In .net the garbage collector is normally invocked implicitly but you can force the GC explicitly also.

when first generations is fill i.e 0 GEN & your application wants to store some more value then this GC will invocks & check which elements are in use & which are not & delets the unused element if all the elements are in use then all the elements are transfer to little higher level i.e 1 GEN simliarly to 2 GEN when all the generations are filled  & you want to store some more element then GC will throw an exception "memory out of range exception".

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions