Beispiel #1
0
 public static void ThreadMethod(object o)
 {
     ConsoleTools.Devider('-');
     for (int i = 0; i < 10; i++)
     {
         Console.WriteLine("ThreadProc: {0}", i); // Used by: Ex001_Thread_Basic AND Ex002_Thread_Background AND Ex003_Tasks_Basic
         Thread.Sleep((int)o);
     }
     ConsoleTools.Devider('-');
 }
 public static void ThreadMethod(object o)
 {
     ConsoleTools.Devider('-');
     for (int i = 0; i < 10; i++)
     {
         Console.WriteLine("ThreadProc: {0}", i);
         Thread.Sleep((int)o);
     }
     ConsoleTools.Devider('-');
 }