原文:https://www.cnblogs.com/xuxml/p/8493790.html
Thread theader = new Thread(new ThreadStart(new Action(() => { Thread.Sleep(2000); Console.WriteLine("我是新建的子线程....."); }))); theader.Start(); Console.WriteLine("我是主线程......"); Console.ReadKey();
原文:https://www.cnblogs.com/xuxml/p/8493790.html
Thread theader = new Thread(new ThreadStart(new Action(() => { Thread.Sleep(2000); Console.WriteLine("我是新建的子线程....."); }))); theader.Start(); Console.WriteLine("我是主线程......"); Console.ReadKey();