diff --git a/pp.A1-CondPhilosophers/src/main/java/pp/Philosopher.java b/pp.A1-CondPhilosophers/src/main/java/pp/Philosopher.java index 8139cfb..653bf3d 100644 --- a/pp.A1-CondPhilosophers/src/main/java/pp/Philosopher.java +++ b/pp.A1-CondPhilosophers/src/main/java/pp/Philosopher.java @@ -1,6 +1,7 @@ package pp; import java.util.concurrent.locks.Lock; +import java.util.concurrent.locks.ReentrantLock; public class Philosopher extends Thread implements IPhilosopher { private int seat; @@ -9,12 +10,14 @@ public class Philosopher extends Thread implements IPhilosopher { public void setLeft(IPhilosopher left) { // TODO Auto-generated method stub // Cast auf Philosopher erforderlich + Philosopher x = (Philosopher) left; } @Override public void setRight(IPhilosopher right) { // TODO Auto-generated method stub // Cast auf Philosopher erforderlich + Philosopher y = (Philosopher) right; } @Override diff --git a/pp.A1-CondPhilosophers/target/classes/pp/IPhilosopher.class b/pp.A1-CondPhilosophers/target/classes/pp/IPhilosopher.class new file mode 100644 index 0000000..3c3e74e Binary files /dev/null and b/pp.A1-CondPhilosophers/target/classes/pp/IPhilosopher.class differ diff --git a/pp.A1-CondPhilosophers/target/classes/pp/Philosopher.class b/pp.A1-CondPhilosophers/target/classes/pp/Philosopher.class new file mode 100644 index 0000000..6e9db54 Binary files /dev/null and b/pp.A1-CondPhilosophers/target/classes/pp/Philosopher.class differ diff --git a/pp.A1-CondPhilosophers/target/classes/pp/PhilosopherExperiment.class b/pp.A1-CondPhilosophers/target/classes/pp/PhilosopherExperiment.class new file mode 100644 index 0000000..3fd0c12 Binary files /dev/null and b/pp.A1-CondPhilosophers/target/classes/pp/PhilosopherExperiment.class differ