예제 #1
0
        static void Main(string[] args)
        {
            ProgramPipeTest Client = new ProgramPipeTest();

            Thread ClientThread = new Thread(Client.ThreadStartClient);

            ClientThread.Start();
        }
예제 #2
0
        static void Main(string[] args)
        {
            ProgramPipeTest Server = new ProgramPipeTest();

            Thread ServerThread = new Thread(Server.ThreadStartServer);

            ServerThread.Start();
        }
예제 #3
0
        static void Main(string[] args)
        {
            // To simplify debugging we are going to create just one process, and have two tasks
            // talk to each other. (Which is a bit like me sending an e-mail to my co-workers)

            ProgramPipeTest Server = new ProgramPipeTest();
            ProgramPipeTest Client = new ProgramPipeTest();

            Thread ServerThread = new Thread(Server.ThreadStartServer);
            Thread ClientThread = new Thread(Client.ThreadStartClient);

            ServerThread.Start();
            ClientThread.Start();
        }
예제 #4
0
        static void Main(string[] args)
        {
            ProgramPipeTest Server = new ProgramPipeTest();

            Thread ServerThread = new Thread(Server.ThreadStartServer);

            ServerThread.Start();

            /*Thread thread1 = new Thread(() => First());
            *  Thread thread2 = new Thread(() => Second());
            *  Thread thread3 = new Thread(() => Third());*/
            //thread1.Start();

            //thread2.Start();
        }