Ejemplo n.º 1
0
        static void Main()
        {
            TickTock tt  = new TickTock();
            MyThread mt1 = new MyThread("Tick", tt);
            MyThread mt2 = new MyThread("Tock", tt);

            mt1.thrd.Join();
            mt2.thrd.Join();

            Console.WriteLine("Time Over");
            Console.ReadLine();
        }