Esempio n. 1
0
 public void get() throws InterruptedException {
   semaphore.acquire();
   display.setFork(identity, true);
 }
Esempio n. 2
0
 public void put() {
   semaphore.release();
   display.setFork(identity, false);
 }