Thread 实例化
1 //运行实例方法 2 3 class Program { 4 public void myThreadMethod() 5 { 6 Console.WriteLine("myThreadMethod"); 7 } 8 static void Main(string[] args) 9 { 10 Thread thread2 = new Thread(new Program().myThreadMethod); 11 thread2.Start(); 12 Console.ReadLine(); 13 } 14 15 16 }