static void Main(string[] args) { Thread t = new Thread(() => { // do somthing of thread }); t.start(); t.Join(); }