Class PhilosopherMain

java.lang.Object
  |
  +--PhilosopherMain

public abstract class PhilosopherMain
extends java.lang.Object

Class PhilosopherMain defines a main method for running a dining philosophers simulation.


Field Summary
static int NUM_PHILOSOPHERS
          NUM_PHILOSOPHERS is the number of Philosophers used in the simulation.
static long THINK_EAT_TIME
          THINK_EAT_TIME is average time that philosophers spend thinking or eating.
 
Method Summary
static void main(java.lang.String[] args)
          main(args) is the main program for a dining philosophers simulation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUM_PHILOSOPHERS

public static final int NUM_PHILOSOPHERS
NUM_PHILOSOPHERS is the number of Philosophers used in the simulation.

THINK_EAT_TIME

public static final long THINK_EAT_TIME
THINK_EAT_TIME is average time that philosophers spend thinking or eating.
Method Detail

main

public static void main(java.lang.String[] args)
main(args) is the main program for a dining philosophers simulation.