C#  设置进程优先级的方法

this.process1= Process.GetCurrentProcess();
process1.PriorityClass = ProcessPriorityClass.High;

C#设置线程优先级的方法

Thread.CurrentThread.Priority = ThreadPriority.Highest;

05-11 22:10