Skip to content

UGC NET CS 2019System Software and Operating System › Process ManagementVerified

UGC NET CS 2019 PYQ: At a particular time of computation, the value of a counting semaphore is 7. Then $20 \ P$ (wait) operations…

At a particular time of computation, the value of a counting semaphore is 7. Then $20 \ P$ (wait) operations and $15 \ V$ (signal) operations are completed on this semaphore. What is the resulting value of the semaphore?

  1. A
    28
  2. B
    12
  3. C
    2
    Correct answer
  4. D
    42

Answer

(C) 2

Approach

Apply net effect of P and V operations on a counting semaphore.

Reviewed by UGC IQ Editorial Team.