Hi Saurabh
I highly recommend you read these articles on how the GC works. Some of
the details are out of date, but the general idea is correct:
http://msdn.microsoft.com/msdnmag/issues/1100/gci/
http://msdn.microsoft.com/msdnmag/issues/1200/GCI2/
To answer your specific questions:
| By saying multiple collections there, u mean to say that as soon as
| Gen0 is full,GC(0) gets fired and if it cud not find enough space in
| Gen0 for the new object , it wud fire GC(1), and subsequently GC(2)
That's correct (although greatly simplified).
| wud these GCs be considered as seperate GCs and the objects surviving
| that wud be promoted 1 Gen each, is that the case.
Yes.
| and will the Finalizers get fired in Gen0 and Gen1 collection too or
| only after Gen2 and Large Object Heap has been collected.
Finalizers get called by the finalizer thread at some undetermined point
after the object is collected, regardless of the generation they came from.
| FYI the file size which i am trying to load is 35.5 KB and i presume
| Large objects eligibility criteria is way high than that.
Yes, Large Objects are > 85kb
Hope that helps
-Chris