Similar questions 1 more → · asked again: GATE 1992, Q2(x)
Synchronization & Concurrency

Your answer
Answer & solution
Answer: B: 8 (no official key was published)
Each completed wait consumes one available unit, decreasing the count by 1. Each signal adds one unit. Thus the net change is−6+4=−2, and the final count is 10−2=8. Because all six waits are stated to complete and the initial count is sufficient even before signals, no blocking ambiguity affects this arithmetic. Hence B; counting only the signals would incorrectly increase the initial value.