The producer and consumer processes share the following variables: int n…
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.
- A.
signal(M), signal(F)
- B.
signal(M), wait(F)
- C.
signal(F), wait(M)
- D.
wait(F), wait(M)
Attempted by 87 students.
Sign up free to check your answer
Sign up freeLoading lesson…

