Interview questions

.Net - How garbage collection deals with circular references

Next question>>           Learn .NET
.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.

Next question>>

Also read

.NET Framework

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..................

.NET garbage collection

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..................

Define LeaseTime, SponsorshipTime, RenewOnCallTime, LeaseManagePollTime.

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................. 



Write your comment - Share Knowledge and Experience


 

 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring