C# 进程优先级和线程优先级的方法

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

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

 

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

  Thread.CurrentThread.Priority = ThreadPriority.Highest;

 

posted @ 2016-04-18 16:30  xiaobenshi  阅读(4241)  评论(1编辑  收藏  举报