Question: A computer has three commonly used resources designated A , B and C . Up to three processes designated X , Y and Z run
A computer has three commonly used resources designated A B and C Up to three
processes designated X Y and Z run on the computer and each makes periodic use
of two of the three resources.
Process X acquires A then B uses both and then releases both.
Process Y acquires B then C uses both and then releases both.
Process Z acquires C then A uses both and then releases both.
a If two of these processes are running simultaneously on the machine, can a dead
lock occur? If so describe the deadlock scenario.
b Describe a scenario in which deadlock occurs if all three processes are running
simultaneously on the machine.
c Modify the algorithm for acquiring resources so that deadlock cannot occur with
three processes running.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
