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.
File List
main.cpp [code] |
Generated on Wed Jul 20 2022 14:36:23 by 1.7.2