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

时间:2016-04-18 17:14:49   收藏:0   阅读:541

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

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

 

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

  Thread.CurrentThread.Priority = ThreadPriority.Highest;

 

原文:http://www.cnblogs.com/ModBus/p/5404953.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!