solve a Dam problem that does not has enough power to provide electricity to open all floodgates at the same time to rel
Posted: Fri Jul 01, 2022 5:43 am
solve a Dam problem that does not has enough power to provide electricity to open all floodgates at the same time to release water. suppose solve the problem through one of the free RTOS features {Binary semaphores, Mutex or queue} Dam problem is Busy waiting. suggestion: 6 floodgates = 6 tasks. the Dam power can open 2 floodgates at the same time, so others will wait or go to sleep state till the first two floodgates will open. implementation code required //