GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET
Go To First  |  Previous Question  |  Next Question 
 ASP.NET  |  Question 100 of 164    Print  
Explain the basic functionality of garbage collector

  
Total Answers and Comments: 4 Last Update: October 21, 2009     Asked by: ravivarma 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 01, 2007 02:38:46   #1  
sunitha        

RE: Explain the basic functionality of garbage collect...

Garbage collector is mainly used for automatic memory management.It is used to monitor leaked and unused memory objects that are loaded into memory.garbage collector releases memory objects.If they are not in use for a longer period.

system.gc.collect() is method used to release the memory resources programatically.


 
Is this answer useful? Yes | No
January 02, 2007 06:00:32   #2  
hansat        

RE: Explain the basic functionality of garbage collect...

Garbage collector is a process which is resides in memory and it clears memory when more space is not available on the memory it removes the objects which are not refrenced.


 
Is this answer useful? Yes | No
February 07, 2007 08:28:37   #3  
shyamvyas Member Since: February 2007   Contribution: 1    

RE: Explain the basic functionality of garbage collect...
Garbage Collector in .Net Framework is used for Automatic Memory Management i.e. it is collect all unused memory area and give to application. system.gc.collect() is a method for release the memory. But remember one think it is only an request i.e. we can't explicitly release the memory by using system.gc.collect().
 
Is this answer useful? Yes | No
October 21, 2009 06:24:31   #4  
kirangiet Member Since: June 2009   Contribution: 24    

RE: Explain the basic functionality of garbage collector

Memory Management a part of CLR functionality is a important aspect in .NET.

Garbage Collector well known as GC is the one responsible for Memory Management.


GC Runs periodically through Managed Heap (Which is divided into 3
Generations) and find the object which doesn't contain any reference. It then
collect those objects to free Managed Heap. After collecting the unreferenced
object GC will then Defragment Managed Heap in order to get continuous block of
memory.


GC.Collect() is a method used to call GC exclusively. However it is
recommended not to use this method often as it will promote the object left in
Heap to higher generation.



 
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