增加服务器的线程吞吐量

This commit is contained in:
HSL
2017-03-06 11:17:51 +08:00
parent 1e249baa1d
commit f80e70da28

View File

@@ -30,7 +30,8 @@ namespace 软件系统服务端模版
return;
}
}
//设置应用程序的线程池数量防止服务器端卡死状态根据内存及CPU进行更改
System.Threading.ThreadPool.SetMaxThreads(1000, 256);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());