All mock tests are FREE till 31 December — register to save your progress

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?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. 2

Explanation

7 − 20 + 15 = 2.

More System Software and Operating System questions