Unformatted text preview: 5. Write down the solution of the Readers-Writers problem using 3 semaphores (mutex, OkToRead, OkToWrite) 6. Synchronisation has two parts mutual exclusion and scheduling. Discuss how they are provided in monitors. 7. Draw the state transition diagram of a process and indicate which transitoin can be incurred by wait and signal operations o 8. In the semaphore solution of readers-writers can OKToWrite ever get greater than 1?What about OKToRead?Explain how i 9. In the monitor solution of dining-philosopher problem from the text book, is FIFO order guaranteed for Philosophers (i.e., th e 10. Regarding the monitor solution of dining-philosopher problem from the textbook, if the philosopher (P1) is inside the putdo w...
View
Full Document
- Spring '10
- lie
- producer, monitor, Semaphore, buffer size, producer-consumer problem
-
Click to edit the document details