public class Fork
extends java.lang.Object
| Constructor and Description |
|---|
Fork() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
owned(Philosopher asker) |
void |
release(Philosopher asker) |
boolean |
tryTake(Philosopher asker) |
public boolean tryTake(Philosopher asker)
public void release(Philosopher asker)
public boolean owned(Philosopher asker)