C# Programming - Constructors - Discussion

Discussion Forum : Constructors - General Questions (Q.No. 13)
13.
Which of the following statements is correct?
There is one garbage collector per program running in memory.
There is one common garbage collector for all programs.
An object is destroyed by the garbage collector when only one reference refers to it.
We have to specifically run the garbage collector after executing Visual Studio.NET.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

Av99 said:   1 decade ago
Only one garbage collector is present in the vs.

Vishwanath Heddoori said:   9 years ago
Every process has its own managed heap, which will be collected separately. Hence, one GC per process.

There's no system-wide heap; hence, system-wide GC does not exist.

Post your comments here:

Your comments will be displayed after verification.