Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

[QUESTION ASKED ME AT MICRO-SOFT 2nd ROUND] :((

What is the Primary Entry point when GC know that,
object is garbage and has to collect it.

This question asked to me at Microsoft Second round of interview,
i answerd about application root and how graph get generated but they were not satisfied with that.

so please help me out to know this.
Please write purely internal of GC if you know.

prg_anil@yahoo.co.in,prg.apv@gmail.com :-\

Thanks.
Posted

1 solution

Think of all objects lying on a heap with pointers (connectors on a graphs) pointing to them as they are being used. Whenever no pointers are pointing to those objects i.e. when the object is not connected to anything on the graph any more - it is viable for GC. Is this what you were asking?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900