UGC NET CS 2019System Software and Operating System › Process ManagementVerified
UGC NET CS 2019 PYQ: A counting semaphore is initialized to 8. 3 wait ( ) operations and 4 signal ( ) operations are applied.…
A counting semaphore is initialized to 8. 3 wait ( ) operations and 4 signal ( ) operations are applied. Find the current value of semaphore variable.
- A9Correct answer
- B5
- C1
- D4
Answer
(A) 9
Approach
Each wait decrements and each signal increments a counting semaphore.
Reviewed by UGC IQ Editorial Team.