C # GC for server

Is the GC server (gcServer flag in configuration) available in .Net 4.0? Or was it out of date?

Thanks!!!

+3
garbage-collection c #
source share
1 answer

Yes, he is (still available). No, this is not (deprecated).

Why a question?

Link to the argument http://architecturebyashwani.blogspot.com/2010/02/foreground-gc-and-background-gc.html

In 4.0 there is a new GC (background for workstation mode), so at the end there are three GC; server, workstation at the same time, workstation is simultaneously disconnected.

Three options for web.config / app.config :

 <configuration> <runtime> <gcConcurrent enabled="false"/> <!-- or --> <gcConcurrent enabled="true"/> <!-- or --> <gcServer enabled="true"/> </runtime> </configuration> 

Three or are "exclusive." You can enable only one option at a time :-)

+7
source share

All Articles