Two atomic operations permissible on Semaphores are

Options

  • A. wait, stop
  • B. wait, hold
  • C. wait, signal
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. wait, signal

Detailed Explanation

In Operating Systems (OS), a semaphore is a synchronization mechanism used to control access to shared resources by multiple processes or threads.

The two atomic operations are:

Wait (P operation): Decreases the semaphore value. If the resource is unavailable, the process may have to wait.

Signal (V operation): Increases the semaphore value and may wake up a waiting process.