Update pp.A1-CondPhilosophers/src/main/java/pp/Philosopher.java
parent
7723b7fb35
commit
c53e2b09ee
|
@ -36,7 +36,7 @@ public class Philosopher extends Thread implements IPhilosopher {
|
|||
|
||||
@Override
|
||||
public void setTable(Lock table) {
|
||||
// TODO Auto-generated method stub//
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
this.table = table;
|
||||
this.canEat = table.newCondition();
|
||||
|
@ -127,7 +127,7 @@ public class Philosopher extends Thread implements IPhilosopher {
|
|||
}
|
||||
}
|
||||
|
||||
// Gibt zurück, ob dieser Philosoph aktuell isst – wichtig für die Nachbarn.
|
||||
// Gibt zurück, ob dieser Philosoph aktuell isst wichtig für die Nachbarn.
|
||||
public boolean isEating() {
|
||||
return eating;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue