Esempio n. 1
0
        static void Main(string[] args)
        {
            MyThread thread1 = new MyThread("Thread 1");
            MyThread thread2 = new MyThread("Thread 2");
            MyThread thread3 = new MyThread("Thread 3");

            thread1.StartThread();
            thread2.StartThread();
            thread3.StartThread();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            MyThread t1 = new MyThread("Thread 1");
            MyThread t2 = new MyThread("Thread 2");


            t1.StartThread();
            t2.StartThread();

            Console.Read();
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            MyThread th1 = new MyThread("Thread 1");
            MyThread th2 = new MyThread("Thread 2");
            MyThread th3 = new MyThread("Thread 3");

            th1.StartThread();
            th2.StartThread();
            th3.StartThread();

            Console.ReadKey();
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            MyThread t1 = new MyThread("Thread 1"); //creating objects of "MyThread" class
            MyThread t2 = new MyThread("Thread 2");
            MyThread t3 = new MyThread("Thread 3");

            t1.StartThread(); //calling functions to start threads
            t2.StartThread();
            t3.StartThread();

            Console.ReadKey();
        }