Dining Philosopher Problem - in the easy way. We have five philosopher sitting around a table and they are either thinking or eating. There is rice on the table, but there are only five chopsticks - and one need two of them for eating. In this easy treatment ANY two of the five chpsticks can be used for eating - if we can acquire them. The five chopsticks are represented by a 5-slots semaphore (a semaphore counting from 0 to 5). The philosophers are represented as threads.

Dependencies:   mbed-rtos mbed

History

First version default tip

2016-02-10, by icserny [Wed, 10 Feb 2016 12:46:34 +0000] rev 0

First version