static void Main(string[] args)
        {
            int numTests = 10000;

            controller c0 = new controller(0);
            controller c1 = new controller(1);

            c0.SetIterations(numTests);
            c1.SetIterations(numTests);

            Thread t0 = new Thread(new ThreadStart(c0.RunTest));
            Thread t1 = new Thread(new ThreadStart(c1.RunTest));

            t0.Start();
            t1.Start();

            while (!t0.IsAlive && !t1.IsAlive)
            {
                ;
            }
            Console.In.ReadLine();
        }
        static void Main(string[] args)
        {
            int numTests = 10000;

            controller c0 = new controller(0);
            controller c1 = new controller(1);

            c0.SetIterations(numTests);
            c1.SetIterations(numTests);

            Thread t0 = new Thread(new ThreadStart(c0.RunTest));
            Thread t1 = new Thread(new ThreadStart(c1.RunTest));

            t0.Start();
            t1.Start();

            while (!t0.IsAlive && !t1.IsAlive) ;
            Console.In.ReadLine();
        }