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 operations and 'x' V operations were performed on this semaphore. If the final value of the semaphore is 5, what is x?

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

Show answer & explanation

Correct answer: C. (C) 18

More System Software and Operating System questions