Question: Draw a Resource Allocation Graph (RAG) for a given scenario and find that whether it contains a deadlock or not. Find all cycles in the
Draw a Resource Allocation Graph (RAG) for a given scenario and find that whether it contains a deadlock or not. Find all cycles in the RAG. [Marks=10]
Resources: Printer (R1), Hard Disk (R2), CPU (R3) and RAM (R4)
Processes: MS Excel (P1), MS Word (P2), Media Player (P3) and Calculator (P4)
Resources: Printer = 1, Hard Disks = 2, CPU = 1, RAM = 1
MS Excel Holds Printer and wait for CPU and RAM.
MS Word holds Hard Disk and RAM and waits for Printer and CPU.
Media Player waits for Hard Disk.
Calculator holds CPU.
Write cycles in RAG if any?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
