Пример #1
0
 public void ThreadRun()
 {
     for (int looper = 1; looper <= quantity; looper++)
     {
         cell.WriteToCell(looper);  // "producing"
     }
 }
Пример #2
0
 public void ProducerThreadRun()
 {
     for (var i = 1; i <= _quantity; i++)
     {
         _cell.WriteToCell(i);
         Thread.Sleep(TimeSpan.FromSeconds(1));
     }
 }