Q.No.4: 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. 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?
Q.No.4: 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. 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?
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Q.No.4: 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.
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?
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education