philosophers = 5; dishes = 10; con i = 1 to philosophers do Philosopher(i) end Philosopher(i) { for i = 1 to dishes do try getting two forks from right and left if (succeeded) eat for a while; put back the forks otherwise keep trying end }