Пример #1
0
 Consumer(Shared s) {
   this.s = s;
   l = s.getLock();
 }
Пример #2
0
 Producer(Shared s) {
   this.s = s;
   l = s.getLock();
 }