Thread C# Tutorial

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