GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Microsoft  >  Microsoft.NET

 Print  |  
Question:  GC and Performance

Answer: 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


November 11, 2008 04:00:43 #3
 muralikrishnareddy558   Member Since: November 2008    Total Comments: 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.

     

 

Back To Question