Beginn bearbeitung
parent
8a4ace5d1e
commit
d601ef8b71
|
|
@ -1,6 +1,7 @@
|
||||||
package pp;
|
package pp;
|
||||||
|
|
||||||
import java.util.concurrent.locks.Lock;
|
import java.util.concurrent.locks.Lock;
|
||||||
|
import java.util.concurrent.locks.ReentrantLock;
|
||||||
|
|
||||||
public class Philosopher extends Thread implements IPhilosopher {
|
public class Philosopher extends Thread implements IPhilosopher {
|
||||||
private int seat;
|
private int seat;
|
||||||
|
|
@ -9,12 +10,14 @@ public class Philosopher extends Thread implements IPhilosopher {
|
||||||
public void setLeft(IPhilosopher left) {
|
public void setLeft(IPhilosopher left) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
// Cast auf Philosopher erforderlich
|
// Cast auf Philosopher erforderlich
|
||||||
|
Philosopher x = (Philosopher) left;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setRight(IPhilosopher right) {
|
public void setRight(IPhilosopher right) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
// Cast auf Philosopher erforderlich
|
// Cast auf Philosopher erforderlich
|
||||||
|
Philosopher y = (Philosopher) right;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue