📝 Question
#156
At a particular time of computation the value of a counting semaphore is 7.Then 20 P operations and 15 V operations were completed on this semaphore. The resulting value of the semaphore is? (GATE 1987)
✓
Correct Answer
A. 42
💡
Explanation
P represents Wait and V represents Signal. P operation will decrease the value by 1 every time and V operation will increase the value by 1 every time.
⌨️ Press
A
B
C
D
to select