A counting semaphore was initialized t o $7$. Then $\text{20 P (wait)}$ operations and$\text{x V (signal)}$ operations were completed on this semaphore. If the final value of semaphore is $5$, then the value $x$ will be
Counting semaphore is a protected variable whose value can be changed only by predefined atomic operations
In given problem
Answer is C
64.3k questions
77.9k answers
244k comments
80.0k users