Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

During discussion with my collegue, I got a doubt that the garbage collector in .net works system wide or application wide.

Means if every application having its own GC then will it effect system performance?

I am little bit confused about that.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
342 views
Welcome To Ask or Share your Answers For Others

1 Answer

Each process has its own managed heap, which will be collected separately.

There's no system-wide heap, so there can be no system-wide GC.

(If you're running multiple CLRs in the same process, they'd each have their own GC too. That's a pretty rare situation though.)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...