• support@answerspoint.com

What are monitors and condition variables?

1463

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. 

0Answer


Your Answer

    Facebook Share        
       
  • asked 8 years ago
  • viewed 1463 times
  • active 8 years ago

Best Rated Questions