GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  Microsoft.NET
Go To First  |  Previous Question  |  Next Question 
 Microsoft.NET  |  Question 36 of 38    Print  
GC and Performance
If there are 5 different .net applications running on a single machine,When the Garbage Collector wakes up how does it release the unused resources
1)Will there be 5 threads of GC running(1 for each application)?
2)Will there be just 1 thread of GC servicing all the 5 applications?
3)Irrespective of the above scenarios,wil there be performance issues with the 5 applications because of the GC



  
Total Answers and Comments: 3 Last Update: November 07, 2008     Asked by: Lavanyaaru 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 07, 2008 23:22:18   #1  
srikanthkumar.p Member Since: May 2008   Contribution: 1    

RE: GC and Performance
GC.collect()
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 2Overall Rating: -2    
September 05, 2008 05:31:31   #2  
Aldo John Member Since: September 2008   Contribution: 4    

RE: GC and Performance
GC is a thread running in the .net CLR. There is only one thread for the entire runtime which manages any number of applications running....
GC.Collect() is just a request to the runtime to initiate a collection....

 
Is this answer useful? Yes | No
November 06, 2008 04:00:43   #3  
muralikrishnareddy558 Member Since: November 2008   Contribution: 2    

RE: GC and Performance

CLR maintains a table content of what are the objects created what are the tasks running.
CLR wont create threads itself. because threads concept have many disadvantages.
Based on that table only GC collects on Managed Heap objects.


 
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