engineering recuitment GATE CSE 2023-24 Test Series Operating Systems Concurrency and Synchronization Operating System Solution
The producer and consumer processes share the following variables:
Int n,
Semaphore M=1
Semaphore E=n
Semaphore F=0
The consumer process must execute ______ and before removing an item from buffer.1
signal(M), signal(F)
2
signal(M), wait(F)
3
Signal(F), wait(M)
4
wait(F), wait(M)