MCQOPTIONS
Saved Bookmarks
| 1. |
The producer and consumer processes share the following variables:Int n,Semaphore M=1Semaphore E=nSemaphore F=0The 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) |
| Answer» E. | |