Which synchronization construct encapsulates shared data and operations and generally allows only one process or thread at a time to execute within its procedures?

Options

  • A. Compiler
  • B. Monitor
  • C. Loader
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. Monitor

Detailed Explanation

Explanation: A monitor is a high-level synchronization construct that encapsulates shared data and procedures. Mutual exclusion is automatically provided for monitor procedures, while condition variables can be used for process coordination.