Get premium membership and access questions with answers, video lessons as well as revision papers.

What are monitors and condition variables?

      

What are monitors and condition variables?

  

Answers


Faith
Monitors are a higher level synch primitive that takes the form of a data type, in which the compiler
defines mutual exclusion. When a thread calls a monitor which is already used, it is queued and sleeps
until the monitor is free again – very much like a semaphore, but needs to be defined beforehand as part
of the OS. A condition variable is a wait() and signal() primitive for monitor functions.
Titany answered the question on April 26, 2022 at 09:20


Next: Describe how to implement a lock using semaphores
Previous: What is deadlock? What is starvation? How do they differ from each other?

View More Operating Systems Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions