public static void Main()
 {
     //Create the thread-safe bucket list
     TSBs = new ThreadSafeBuckets(10);
     TSBs.PrintBuckets();
     //Create and start the Equalizing Thread
     new Thread(new ThreadStart(EqualizerThread)).Start();
     Thread.Sleep(1);
     //Create and start the Randamizing Thread
     new Thread(new ThreadStart(RandomizerThread)).Start();
     //Use this thread to do the printing
     PrinterThread();
 }
Пример #2
0
 public static void Main()
 {
     //Create the thread-safe bucket list
     TSBs = new ThreadSafeBuckets(10);
     TSBs.PrintBuckets();
     //Create and start the Equalizing Thread
     new Thread(new ThreadStart(EqualizerThread)).Start();
     Thread.Sleep(1);
     //Create and start the Randamizing Thread
     new Thread(new ThreadStart(RandomizerThread)).Start();
     //Use this thread to do the printing
     PrinterThread();
 }