Microsoft .Net Framework Interview questions and answers FAQ's,
.Net 2.0, .Net 3.0, .Net 3.5,
WPF - WCF, C#.NET, ASP.Net, VB.Net,ADO.Net, Web & desktop development questions.
Tuesday, May 13, 2008
Briefly describe how garbage collection works.
The garbage collector is a thread that runs in the background of managed .NET applications. It constantly traces the reference tree and attempts to find objects that are no longer referenced. When a nonreferenced object is found, its memory is reclaimed for later use.