00:00
00:00
Newgrounds Background Image Theme

sereneFalconer just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Dining Philosophers

Share Collapse

Author Comments

This is a real-time simulation of the famous Dining Philosophers problem which I first learned about in my Operating Systems class for my CS degree. The philosophers alternate between eating and thinking forever, they need two forks in order to eat, but the problem is that there are only 5 forks and 5 philosophers, so they have to share forks. It can be used to represent a problem where a certain number of actors share a finite number of resources which they require to complete a task, in this case, philosophers, forks, and eating spaghetti! But it could be used to represent practical problems too, imagine several robots in an assembly line that share tools with their neighbor.

Log in / sign up to vote & review!

Credits & Info

Views
205
Votes
60
Score
2.98 / 5.00

Uploaded
Aug 4, 2024
8:58 PM EDT