What does a monitor guarantee about the procedures defined inside it?
Correct answer D. Only one process can be active inside the monitor at a time
A monitor is a high-level construct that packages shared data with the procedures that operate on it, and the language guarantees mutual exclusion so at most one process executes inside at once. Condition variables with wait and signal let processes sleep until a condition holds. Monitors make correct locking easier but do not rule out deadlock, for example when nested monitor calls wait on each other.
Answer checked How we write and check questions
Discussion