Exemple #1
0
        public static void parallelPi_A()
        {
            Thread thread  = new Thread(() => Prakt1.aufgabe3());
            Thread thread2 = new Thread(() => { Console.ReadLine(); thread.Abort(); Console.WriteLine("done"); });

            thread2.Start();
            thread.Start();
        }
Exemple #2
0
        public static void parallelPi_B()
        {
            Thread thread = new Thread(() => Prakt1.aufgabe3());

            thread.Start();
            Thread thread2 = new Thread(() => Prakt1.aufgabe3());

            thread2.Start();
        }