Query on semaphores


Assume that ‘A’ is a Counting Semaphore initialized to value ‘10’. Consider the following program segment:
P(A); V(A); P(A); P(A); P(A); V(A); V(A); V(A); V(A); V(A); P(A); V(A); V(A); P(A)
What is the value of C?
(a) 6 (b) 12 © 8 (d) 10


B 12. I have produced the explanation of it in the previously answered question of your post