diff --git a/code/Philosopher/src/main/java/ch/zhaw/prog2/philosopher/ForkManager.java b/code/Philosopher/src/main/java/ch/zhaw/prog2/philosopher/ForkManager.java index 6c2fa22..5983b61 100644 --- a/code/Philosopher/src/main/java/ch/zhaw/prog2/philosopher/ForkManager.java +++ b/code/Philosopher/src/main/java/ch/zhaw/prog2/philosopher/ForkManager.java @@ -46,7 +46,7 @@ class ForkManager { Fork rightFork = rightFork(philosopherId); // acquire forks sequentially while(!(leftFork.getState() == FREE && rightFork.getState() == FREE)){ - forkDelay(); + forkDelay(); //wait if not both forks are available } leftFork.acquire(philosopherId); forkDelay();