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

Download repository: zip gz

Files at revision 0:abf1becf9617

Name Size Actions
[up]
main.cpp 1654 Revisions Annotate
mbed-rtos.lib 65 Revisions Annotate
mbed.bld 65 Revisions Annotate