[操作疑難] C# process 優先權 問題

hi,

C#/VB. net 有1 Process Class 可控制外部程式。那請問大家有沒有方法可控制自身的 優先權呢?
即是程式1 開始會把自己在Windows 的 Process Priority 設為最高/最低。


Thanks!

Thread thread = new Thread(startDelegate);
thread.Priority = ThreadPriority.BelowNormal;
thread.Start();

http://msdn.microsoft.com/en-us/ ... hread.priority.aspx

TOP

self promotion

Process selfProcess = Process.GetCurrentProcess();
selfProcess.PriorityClass = ProcessPriorityClass.High;

TOP