View on GitHub

Bearded-android-docs

DiningPhilosopherProblem

Download this project as a .zip file Download this project as a tar.gz file

Created Saturday 07 September 2013

There are N philosphers sitting around a circular table eating spaghetti and discussing philosphy. The problem is that each philosopher needs 2 forks to eat, and there are only N forks, one between each 2 philosophers.

Design an algorithm that the philosophers can follow that insures that none starves as long as each philosopher eventually stops eating, and such that themaximum number of philosophers can eat at once.


No backlinks to this page.
comments powered by Disqus