In this example three threads are competing for two resources. The number of free resources is managed in a semaphore while the indiviual resource accesses are protected by 1-1 mutex. The RGB LED shows the waitings state of tasks accessing no resource.

Dependencies:   mbed-rtos mbed

History

First version default tip

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

First version