Eric P. Hutchins

Graphical Dining Philosophers

I built this as part of an Operating Systems class. The concept is to reperesent shared resources. The story in this version is that these philosophers think, get hungry, and eat. There is one chopstick between every two philosophers so if a philosophers finds that one of the chopsticks on either side of him is gone, he has to wait for it to be free before he can eat again. When the program starts, separate processes are actually created and then the processes are stopped when the philosopher is done. You may select at the command line how many philosophers you want and how many times each of them eats before it leaves. It will scale to fit the number of philosophers you want.

Download graphicaldiningphilosophers-0.4.0.tar.gz