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?
- A28
- B12
- C2Correct answer
- D42
Answer
(C) 2
Approach
Apply net effect of P and V operations on a counting semaphore.
Reviewed by UGC IQ Editorial Team.