edu.unima.ky.parallel
Class ExPhilosopher

java.lang.Object
  |
  +--edu.unima.ky.parallel.ExPhilosopher
All Implemented Interfaces:
java.lang.Runnable

class ExPhilosopher
extends java.lang.Object
implements java.lang.Runnable

a Philosopher


Field Summary
(package private)  edu.unima.ky.parallel.ExForks forks
           
(package private)  int id
           
(package private)  int max
           
(package private)  java.io.PrintWriter out
           
 
Constructor Summary
ExPhilosopher(edu.unima.ky.parallel.ExForks f, int i, int m, java.io.PrintWriter o)
          God creates a philosopher
 
Method Summary
(package private) static void doSomeWork(double t)
           
 void run()
          Tries to eat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

forks

edu.unima.ky.parallel.ExForks forks

id

int id

max

int max

out

java.io.PrintWriter out
Constructor Detail

ExPhilosopher

public ExPhilosopher(edu.unima.ky.parallel.ExForks f,
                     int i,
                     int m,
                     java.io.PrintWriter o)
God creates a philosopher

Method Detail

run

public void run()
Tries to eat

Specified by:
run in interface java.lang.Runnable

doSomeWork

static void doSomeWork(double t)