public Controller() { buffer = new InfoBoardBuffer(); rand = new Random(); Start(); Finish(); }
public Writer(InfoBoardBuffer board, Random rand) { this.board = board; this.rand = rand; writerMutex = new Mutex(); }
public Reader(InfoBoardBuffer board) { this.board = board; readerMutex = new Mutex(); }