
\begin{slide}{Das Hauptprogramm}
\begin{verbatim}
class Philo { ...
  public static void main (String [] argv) {
    int size = 5;
    Fork  fo [] = new Fork  [size];
    for (int i=0 ; i<size; i++) {
      fo[i] = new Fork (i);
    }
    Philo ph [] = new Philo [size];
    for (int i=0 ; i<size; i++) {
      ph[i] = new Philo 
         (i, fo[i], fo[(i+1) % size]);
      new Thread (ph[i]).start ();
} } }
\end{verbatim}
\end{slide}

