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

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