static void Main(string[] args) { //Console.Title = "MultiThread Test"; //ThreadTest1 _p = new ThreadTest1(); //_p.Startup(); ThreadTest2 _p = new ThreadTest2(); _p.Start(); }
static void Main(string[] args) { ThreadTest2 t = new ThreadTest2(); Thread first = new Thread(new ThreadStart(t.FirstWork)); first.Start(); while (t.sleep == false) { } Console.WriteLine("first를 2초후에 깨움"); Thread.Sleep(2000); first.Resume(); }