C#限制应用使用指定的CPU运行
System.Diagnostics.Process p1 = System.Diagnostics.Process.Start(execpath, " -blc '" + gspath + "'");
p1.ProcessorAffinity = (IntPtr)0x0007;
p1.WaitForExit(10000);
System.Diagnostics.Process p1 = System.Diagnostics.Process.Start(execpath, " -blc '" + gspath + "'");
p1.ProcessorAffinity = (IntPtr)0x0007;
p1.WaitForExit(10000);