/** * A philosopher who thinks, gets hungry and eats with two forks. * * @author Franck van Breugel */ public abstract class Philosopher extends Thread { protected int id; protected Table table; /** * Initialize this philosopher with the given id and table. * * @param id the id of this philosopher. * @param table the table of this philosopher. */ public Philosopher(int id, Table table) { this.id = id; this.table = table; } }