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

mbed.bld

Committer:
icserny
Date:
2016-02-10
Revision:
0:abf1becf9617

File content as of revision 0:abf1becf9617:

http://mbed.org/users/mbed_official/code/mbed/builds/f141b2784e32