- 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 47 times
solve a Dam problem that does not has enough power to provide electricity to open all floodgates at the same time to rel
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
solve a Dam problem that does not has enough power to provide electricity to open all floodgates at the same time to rel
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 //