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

Questions by Lavanyaaru   answers by Lavanyaaru

Showing Answers 1 - 7 of 7 Answers

Aldo John

  • Sep 5th, 2008
 

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....

  Was this answer useful?  Yes

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.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions