Simulation of the Dining Philosophers problem using Semaphores

The simulation can show a working case and a deadlocked case. Click on the buttons to see either case.