设置进程的优先级
该设置在Win98中会报异常,所以在改变优先级时要注意异常的处理。
引用
http://msdn2.microsoft.com/en-us/library/system.diagnostics.processpriorityclass.aspx
http://msdn2.microsoft.com/en-US/library/system.diagnostics.threadprioritylevel.aspx
- System.Diagnostics.Process p = System.Diagnostics.Process.GetCurrentProcess();
- p.PriorityClass = System.Diagnostics.ProcessPriorityClass.BelowNormal;
引用
http://msdn2.microsoft.com/en-us/library/system.diagnostics.processpriorityclass.aspx
http://msdn2.microsoft.com/en-US/library/system.diagnostics.threadprioritylevel.aspx