A counting semaphore was initialized to 10. Then 6 wait operations and 4 signal operations were completed on this semaphore. The resulting value of the semaphore is_
- A.0
- B.10
- C.8
- D.12
Show answer
Answer: C. 8
The resulting value is 10 - 6 + 4 = 8.
Answer: C. 8
The resulting value is 10 - 6 + 4 = 8.