UGC NET Paper 2 (Computer Science)Hard

Compared to semaphores, a monitor provides:

  1. A. Automatic mutual exclusion on its procedures plus condition variables for scheduling constraints
  2. B. No synchronisation guarantees at all
  3. C. Mutual exclusion only, with no way to express waiting conditions
  4. D. A purely hardware-implemented locking mechanism

Correct answer: A. Automatic mutual exclusion on its procedures plus condition variables for scheduling constraints

A monitor encapsulates shared data with procedures that execute with implicit mutual exclusion, while condition variables (wait/signal) handle scheduling, reducing the manual bookkeeping semaphores require.

More UGC NET Computer Science and Applications questions

Exams that ask this topic