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