예제 #1
0
파일: PairingTest.cs 프로젝트: razor54/PC
        public void funGen(string x, int y)
        {
            var q = pairing.Provide(x, y);

            Console.WriteLine("O Provide de {1} deu {0}", q, x);
            queue.Enqueue(q);
        }
예제 #2
0
        static void Main(string[] args)
        {
            int currConfig = DEBUG;

            Thread firsThread = new Thread(() => Console.WriteLine(pairing.Provide(5, currConfig)));
            Thread second     = new Thread(() => Console.WriteLine(pairing.Provide("cinco", currConfig)));

            Thread third  = new Thread(() => Console.WriteLine(pairing.Provide(6, currConfig)));
            Thread fourth = new Thread(() => Console.WriteLine(pairing.Provide("seis", currConfig)));

            Thread fifth = new Thread(() => Console.WriteLine(pairing.Provide(7, currConfig)));
            Thread sixth = new Thread(() => Console.WriteLine(pairing.Provide("sete", currConfig)));

            firsThread.Start();
            second.Start();
            third.Start();
            fourth.Start();
            fifth.Start();

            sixth.Start();


            Console.ReadKey();
        }