Consumer(Shared s) { this.s = s; l = s.getLock(); }
Producer(Shared s) { this.s = s; l = s.getLock(); }