.Net - Explain how garbage collection deals with circular
references. - June 03, 2009 at 11:00 AM by Shuchi Gauri
Explain how garbage collection deals with circular references.
The .Net runtime knows about all the references between the objects. It can
identify all the circular references that are reachable from the root and hence
finalize them to free them all at once if and when needed.
Also read
What is a CLR (Common Language Runtime)?
Explain the concepts of CTS and CLS(Common Language Specification).
Explain the concepts and capabilities of Assembly in .NET
What is Manifest in .NET?
What is GAC in .NET?
What is garbage collection? How to force garbage collector to run?
Explain the different types of JIT in MS .NET..................
What is garbage collection?
Is it possible to force garbage collection to run?
Define Dispose().
Explain how garbage collection manages reclamation of unused memory in .NET.
Explain how garbage collection deals with circular references..................
The LeaseTime property protects the object so that the garbage collector does
not destroy it as remoting objects are beyond the scope of the garbage
collector.................
|