Example #1
0
 public Reader(Writer writer)
 {
     this.writer = writer;
     obj = new object();            
     readers = 0;
 }
Example #2
0
        public Sync(int numReaders)
        {
            this.numReaders = numReaders;

            writer = new Writer();
            reader = new Reader(writer);
        }