Professional Documents
Culture Documents
Software q Ns
Software q Ns
Software q Ns
Can the concurrent execution of these two processes results in one or both being blocked forever
(deadlocked)? If yes, give execution sequence.
(c) Consider the following scenario of system with four processes P1, P2, P3 and P4 and two resources
R1 and R2 respectively, each resource has two instances. Futhermore:
- P1 holds an instance of R2, and requests an instance of R1;
- P2 holds an instance of R1, and doesn’t need any other resource;
- P3 holds an instance of R1 and require an instance of R2;
- P4 holds an instance of R2 and doesn’t need any other resource;
(i) Draw the resource allocation graph
(ii) Is the system in deadlock ? If yes, explain why. If not, give any sequence of execution for every
process to complete