Thread C# Tutorial

using System;
using System.Threading;
public class MainClass
{
    private static void ThreadFunc() {
        Console.WriteLine( "Thread.CurrentThread.GetHashCode() {0}!",Thread.CurrentThread.GetHashCode() );
    }
    
    static void Main() {
        Thread newThread = new Thread( new ThreadStart(ThreadFunc) );
        Console.WriteLine( "Main Thread is {0}", Thread.CurrentThread.GetHashCode() );
        
        newThread.Start();
        newThread.Join();
        
        Thread.Sleep(2000);
    }
}
Main Thread is 1
Thread.CurrentThread.GetHashCode() 3!