开发者

C# GC for Server

开发者 https://www.devze.com 2023-02-20 03:08 出处:网络
Is Server GC (gc开发者_Python百科Server flag in configuration) available in .Net 4.0? Or it was deprecated?

Is Server GC (gc开发者_Python百科Server flag in configuration) available in .Net 4.0? Or it was deprecated?

Thank you!!!


Yes, it's (still available). No, it isn't (deprecated).

Why the question?

A link on the argument http://architecturebyashwani.blogspot.com/2010/02/foreground-gc-and-background-gc.html

There is even a new GC (background for workstation mode) in 4.0, so in the end there are three GC; server, workstation concurrent on, workstation concurrent off.

The three settings for web.config/app.config are:

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

The three or are "exclusive". You can enable only ONE option at a time :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号