Skip to content
This repository has been archived by the owner on May 27, 2019. It is now read-only.

Solution to actual dining philosophers problem

Latest
Compare
Choose a tag to compare
@baatochan baatochan released this 22 Apr 19:38
· 3 commits to master since this release

This release contains the solution for actual dining philosophers problem.

My attempt at resolving this problem uses an additional thread for waiter which decided who should eat at the given moment. There is also a queue for the waiter so the waiter thread knows who wait the longest time.

There is another additional thread which is used for finishing the program which waits for a q on a standard input stream.

User Interface is done on the main thread.