
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Material Type: Assignment; Class: Operating Systems; Subject: Computer Science; University: University of Virginia; Term: Unknown 2005;
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!
The Gilbert process behaves as follows:
get magazine Y get magazine X release Y get bathroom release X release bathroom
The Shoe process behaves as follows:
get magazine X get magazine Y release X release Y get bathroom release bathroom
Each process is asynchronous and repeats its behavior cycle indefinitely.
(1) Using semaphores, implement appropriate synchronization for these processes in a mul- tiprogramming environment. Try to achieve the highest utilization of each resources. You are not allowed to change the order in which any operations are performed (they are very stubborn). The resulting system must be deadlock free.
(2) Show that your solution implements mutual exclusion with respect to the magazine X.
(3) Outline an informal argument that deadlock is not possible in your solution.