Skip to content

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.

  1. A
    9
    Correct answer
  2. B
    5
  3. C
    1
  4. D
    4

Answer

(A) 9

Approach

Each wait decrements and each signal increments a counting semaphore.

Reviewed by UGC IQ Editorial Team.