一个同事说,这是可能的(但看起来有点怪我)。 如果有一种方法可以做到这一点,我在这里可以这样做? 我说的是winXP的操作系统。
A co-worker said this is possible (but it looks a bit strange to me). If there's a way to do it, where can I do this? I'm talking about winXP OS.
是的,GC有两种操作模式:服务器和工作站。您可以更改或者您的app.config中(每个应用程序)或machine.config的模式。请参见 http://blogs.msdn.com/junfeng/archive/ 2004年/ 07/13 / 181534.aspx 了解详情。
Yes, the GC has two modes of operation: Server and Workstation. You can change modes in either your app.config (per application) or machine.config. See http://blogs.msdn.com/junfeng/archive/2004/07/13/181534.aspx for more information.
<Configuration>
<runtime>
<gcServer enabled="false" />
<gcConcurrent enabled="true" />
</runtime>
</Configuration>
有关 gcServer
< /一>:
有关 gcConcurrent
< /一>:
在一般情况下,然而,你不希望,除非你有一个的的真正的 真的的很好的理由。普遍认为,关心这个唯一的东西是被托管的CLR自己非托管的应用程序(如SQL Server或IIS)。
In general, however, you don't want to change the GC operation mode, especially on a machine level unless you have a really, really good reason to. Generally the only things that care about this are unmanaged applications that are hosting the CLR themselves (such as SQL Server or IIS).
上一篇:通过游戏中心发送 NSString游戏中心、NSString
下一篇:优化查找执行IInterface与其中所有类; T&GT;和那些明确地与特定类型实现它明确、类型、IInterface、GT