From f80e70da28558af586c2ca8a7fa3ae7335267353 Mon Sep 17 00:00:00 2001 From: HSL Date: Mon, 6 Mar 2017 11:17:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E7=9A=84=E7=BA=BF=E7=A8=8B=E5=90=9E=E5=90=90=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 软件系统服务端模版/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/软件系统服务端模版/Program.cs b/软件系统服务端模版/Program.cs index 02410da..7021d91 100644 --- a/软件系统服务端模版/Program.cs +++ b/软件系统服务端模版/Program.cs @@ -30,7 +30,8 @@ namespace 软件系统服务端模版 return; } } - + //设置应用程序的线程池数量,防止服务器端卡死状态,根据内存及CPU进行更改 + System.Threading.ThreadPool.SetMaxThreads(1000, 256); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1());