Question
Given the following information about resources in a system: There are two classes of resources labeled R1 and R2. Each resource has two instances. There
Given the following information about resources in a system:
There are two classes of resources labeled R1 and R2. Each resource has two instances. There are four processes, labeled P1 to P4. Here are some examples of resources allocated to processes:
An instance of R1 held by P2, another instance of R1 held by P3, an instance of R2 held by P1, another instance of R2 held by P4, Some processes require additional resources such as:
P1 requests an instance of R1 P3 requests an R2 instance
a. Plot the resource allocation graph for this system.
b. Is it possible for a lock situation to occur in this case? Why or why not?
c. Give a possible process execution sequence that will not cause deadlock.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started