Please send questions to st10@humboldt.edu .

//--------
// an attempted illustration of dining philosophers?
//
// an example using synchronized threads
// (this is AWT code)
//
// last modified: 10-20-00
//--------

public class TryPhilos
{
        public static void main(String args[])
        {
                // an array of fork objects? only one philosopher
                // can hold and use (lock) at a time;
                final Object fork[] = {"fork0", "fork1", "fork2", "fork3", "fork4"};

                // can I have an array of threads? each represents an
                // eating philosopher;
                Thread philosopher[] = new Thread[5];

                for (int i=0; i