engineering recuitment GATE CSE 2023-24 Test Series Operating Systems Concurrency and Synchronization Operating System Solution
Consider a counting semaphore which was initialized to (y + 7) for a system. Seven wait and (y+ 3) signal operations were completed on this semaphore. If the final value of the semaphore is (y + 2) then what is the value of y?
1
-2
2
-1
3
0
4
1