Example #1
0
        static void Main(string[] args)
        {
            //Console.Title = "MultiThread Test";
            //ThreadTest1 _p = new ThreadTest1();
            //_p.Startup();

            ThreadTest2 _p = new ThreadTest2();

            _p.Start();
        }
Example #2
0
File: Program.cs Project: lkj528/Q
        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();
        }