In this example three semaphores are used to mantain the monotonic execution order of three threads. Each task is consumer of a semaphore and at the same time producer of an another semaphore.Watching the RGB LED you can see the order of execution.

Dependencies:   mbed-rtos mbed

Download repository: zip gz

Files at revision 0:61ad4bb19246

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