using System; using System.Threading; class MainClass { public static void Main() { Thread thrd; // Get the main thread. thrd = Thread.CurrentThread; } }