Question: Answer the following questions about Process Synchronization. (a) Synchronization using Monitors Some lemurs live one side of a narrow canyon because it provides good shelter.
Answer the following questions about Process Synchronization.
(a) Synchronization using Monitors
Some lemurs live one side of a narrow canyon because it provides good shelter. On the other side is a supply of good food. There is a vine hanging between two trees on either side. The lemurs can use the vine to cross the canyon. No more than 5 lemurs can be on the vine at one time. The vine is rickety and unstable, if more than 5 are on it, it will break and the lemurs will fall to their doom. Also, lemurs can only travel one way, if there are lemurs on the vine trying to cross both ways, they all will fall to their end. Use a monitor to synchronize the lemurs.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
