Пример #1
0
        public Controller()
        {
            buffer = new InfoBoardBuffer();
            rand   = new Random();

            Start();
            Finish();
        }
Пример #2
0
 public Writer(InfoBoardBuffer board, Random rand)
 {
     this.board  = board;
     this.rand   = rand;
     writerMutex = new Mutex();
 }
Пример #3
0
 public Reader(InfoBoardBuffer board)
 {
     this.board  = board;
     readerMutex = new Mutex();
 }