Suppose we replace the wait() and signal() operations of monitorswith a single construct
Chapter 5, Problem 5.34(choose chapter or problem)
Suppose we replace the wait() and signal() operations of monitorswith a single construct await(B), where B is a general Booleanexpression that causes the process executing it to wait until B becomestrue.a. Write a monitor using this scheme to implement the readerswriters problem.b. Explain why, in general, this construct cannot be implementedefficiently.c. What restrictions need to be put on the await statement so that itcan be implemented efficiently? (Hint: Restrict the generality of B;see [Kessels (1977)].)
Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.
Becoming a subscriber
Or look for another answer