Page 1 of 1

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
by answerhappygod
Solve A Dam Problem That Does Not Has Enough Power To Provide Electricity To Open All Floodgates At The Same Time To Rel 1
Solve A Dam Problem That Does Not Has Enough Power To Provide Electricity To Open All Floodgates At The Same Time To Rel 1 (34.09 KiB) Viewed 48 times
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 //