Module 3 QB PDF
Module 3 QB PDF
4. Write the algorithm using test-and –set () instruction that satisfy all the critical section
requirements
5. Analyze the Critical section problem and modify the structure of the below given process
7. Explain how mutual exclusion is implemented using TestandSet() instruction and Swap()
Instruction
8. If the wait() and signal() semaphore operations are not executed atomically, then can
9. What are semaphores? Explain two primitive semaphore operations. What are its
advantages?
10. State Dining Philosopher’s problem and give a solution using semaphores. Write