public static void Main()
Thread t = new Thread(new ThreadStart(() =>
Console.WriteLine("Running...");
Console.WriteLine("Press any key to exit");
Console.WriteLine("In this case, the thread is initialized with a lambda expression (which in turn is just a shorthand version of a delegate). The thread keeps running until stopped becomes true");
public static void ThreadMethod(object o)
for (int i = 0; i < (int)o; i++)
Console.WriteLine("ThreadProc: {0}", i);