Practice mode Operating Systems

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

Explanation

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.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.