Display main thread's priority : Main Thread : Thread C# Examples


C# Examples » Thread » Main Thread »

 

Display main thread's priority









    
using  System;  
using  System.Threading;  
  
class  MainClass  {  
    public  static  void  Main()  {  
        Thread  thrd  =  Thread.CurrentThread;  
  
        Console.WriteLine("Priority:  "  +  thrd.Priority);  
  
    }  
}
    
   
  
   



Output

Priority: Normal


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Thread
» Main Thread