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

A counting semaphore is initialized to 8. 3 wait ( ) operations and 4 signal () operations are applied. Find the current value of the semaphore variable.

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

Show answer & explanation

Correct answer: A. 9

Explanation

8 − 3 + 4 = 9.

More System Software and Operating System questions