How to set priority for your process

Sometimes you want to set priority for your application (or process). The below is the sample code to do that.



System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.High;

No comments:

Post a Comment