Change priority for current process : Process : Development C# Examples


C# Examples » Development » Process »

 

Change priority for current process









    
using  System;
using  System.Diagnostics;

class  MainClass
{
      public  static  void  Main()
      {
            Process  thisProc  =  Process.GetCurrentProcess();
            thisProc.PriorityClass  =  ProcessPriorityClass.High;
            Console.WriteLine("        new  priority  class:  {0}",  thisProc.PriorityClass);
      }
}
    
   
  
   



Output

new priority class: High


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Process