GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  Basics
Go To First  |  Previous Question  |  Next Question 
 Basics  |  Question 21 of 42    Print  
What is garbage collection?

  
Total Answers and Comments: 3 Last Update: July 05, 2007     Asked by: Srikanth 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 17, 2005 02:44:23   #1  
nidhi        

RE: What is garbage collection?
garbage collection is the automatic memory management process run by the CLR in which GC traces the referance tree and remove those referances which are unused and the those referances which are set to null.
 
Is this answer useful? Yes | No
December 08, 2005 19:23:59   #2  
Simi Sreedharan        

RE: What is garbage collection?
  • The automatic memory management scheme employed by the .NET Framework (CLR) is called garbage collection.
  • Unused memory is automatically reclaimed by garbage collection without interaction with the application
  • The garbage collector is a low-priority thread that always runs in the background of the application under normal circumstances. It operates when processor time is not consumed by more important tasks. When memory becomes limited however the garbage collector thread moves up in priority. Memory is reclaimed at a more rapid pace until it is no longer limited at which point the priority of garbage collection is again lowered.

 
Is this answer useful? Yes | No
July 05, 2007 03:21:27   #3  
Abhinav        

RE: What is garbage collection?
CLR takes care of the garbage collection process.
It calls the garbage collection manager which holds a stack of all the references made by your program.
It first goes to the root directory of the application and checks for all the references and stacks them.
It then free's all the references are are no loger in use.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape