コード例 #1
0
ファイル: Program.cs プロジェクト: aluaabdikakhar/PP2-1
        static void Main(string[] args)
        {
            MyThread t1 = new MyThread("Thread 1");
            MyThread t2 = new MyThread("Thread 2");

            t1.startThread();
            t2.startThread();

            Console.Read();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: y4m4t0/PP2_Oralkhan
        static void Main(string[] args)
        {
            MyThread t1 = new MyThread("Thread 1");
            MyThread t2 = new MyThread("Thread 2");
            MyThread t3 = new MyThread("Thread 3");

            t1.startThread();
            t2.startThread();
            t3.startThread();
        }
コード例 #3
0
        static void Main(string[] args)
        {
            MyThread t1 = new MyThread("Thread 1");//create an incstance if the class MyThread
            MyThread t2 = new MyThread("Thread 2");
            MyThread t3 = new MyThread("Thread 3");

            t1.startThread();//call the function startThread to start a thread
            t2.startThread();
            t3.startThread();
            Console.ReadKey();
        }