Monitors - Operating System Questions and Answers

  • 1. A monitor is a type of :
   A.) semaphore
   B.) low level synchronization construct
   C.) high level synchronization construct
   D.) none of the mentioned

Answer: Option 'C'

high level synchronization construct

  • 2. A monitor is characterized by :
   A.) a set of programmer defined operators
   B.) an identifier
   C.) the number of variables in it
   D.) all of the mentioned

Answer: Option 'A'

a set of programmer defined operators

  • 3. A procedure defined within a ________ can access only those variables declared locally within the _______ and its formal parameters.
   A.) process, semaphore
   B.) process, monitor
   C.) semaphore, semaphore
   D.) monitor, monitor

Answer: Option 'D'

monitor, monitor

  • 4. The monitor construct ensures that :
   A.) only one process can be active at a time within the monitor
   B.) n number of processes can be active at a time within the monitor (n being greater than 1)
   C.) the queue has only one process in it at a time
   D.) all of the mentioned

Answer: Option 'A'

only one process can be active at a time within the monitor

  • 5. The operations that can be invoked on a condition variable are :
   A.) wait & signal
   B.) hold & wait
   C.) signal & hold
   D.) continue & signal

Answer: Option 'A'

wait & signal

  • 6. The process invoking the wait operation is :
   A.) suspended until another process invokes the signal operation
   B.) waiting for another process to complete before it can itself call the signal operation
   C.) stopped until the next process in the queue finishes execution
   D.) none of the mentioned

Answer: Option 'A'

suspended until another process invokes the signal operation