C# 线程

原文: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();

 

posted @ 2020-03-06 09:57  古兴越  阅读(93)  评论(0编辑  收藏  举报