[英]C# GC for Server
Is Server GC (gcServer flag in configuration) available in .Net 4.0? .Net 4.0中是否提供Server GC(配置中的gcServer标志)? 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 参数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; 在4.0中甚至有一个新的GC(工作站模式的背景),所以最后有三个GC; server, workstation concurrent on, workstation concurrent off. 服务器,工作站并发,工作站并发关闭。
The three settings for web.config
/ app.config
are: web.config
/ app.config
的三个设置是:
<configuration>
<runtime>
<gcConcurrent enabled="false"/>
<!-- or -->
<gcConcurrent enabled="true"/>
<!-- or -->
<gcServer enabled="true"/>
</runtime>
</configuration>
The three or
are "exclusive". 三者or
“独家”。 You can enable only ONE option at a time :-) 您一次只能启用一个选项:-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.