\begin{slide}{Ein Philosoph (im Prinzip)}
\begin{verbatim}
class Philo implements Runnable {
  private int me;
  String id () { return "Philo-" + me; }
  private Fork left; private Fork right;
  Philo ( int m, Fork l, Fork r ) {
      me = m; left = l; right = r;
  }
  public void run () { 
    while (true) {
      right.take (this); left.take (this);
      right.drop (this); left.drop (this);
    } 
  }
}
\end{verbatim}
\end{slide}
