Update pp.A1-CondPhilosophers/src/main/java/pp/Philosopher.java

Test-SJ
Shahnam Javidnia 2025-05-01 15:56:46 +02:00
parent 7723b7fb35
commit c53e2b09ee
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}