【发布时间】:2012-03-21 06:33:14
【问题描述】:
我已将 machine.config 中的 maxIoThreads 和 maxWorkerThreads 设置为 100。
<processModel autoConfig="false" maxWorkerThreads="100" maxIoThreads="100"/>
但是,当我在 Visual Studio 中调试 ASP.net 4.0 Web 应用程序代码时,我看到 ThreadPool.GetMaxThreads 返回的计数均为 200。
int workerThreads;
int portThreads;
System.Threading.ThreadPool.GetMaxThreads(out workerThreads, out portThreads);
//workerThreads & portThreads both get the value of 200
我的问题是 machine.config 中的 processmodel 标签和 ThreadPool.GetMaxThreads 之间有什么关系吗?
【问题讨论】:
标签: asp.net .net .net-4.0 asp.net-4.0 threadpool