Which one of the following Graph with a Cycle but No Deadlock? R, R, P R. All of them have a deadlock R, P2 R R R P R4 .. .. ...

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
icon
Related questions
Question
Which one of the following Graph with a Cycle but No Deadlock?
R,
R.
R2
R.
All of them have a deadlock
R,
R
Ps
P3
R
R.
Transcribed Image Text:Which one of the following Graph with a Cycle but No Deadlock? R, R. R2 R. All of them have a deadlock R, R Ps P3 R R.
Expert Solution
Step 1

Option 2:

R1 has one instance

R2 has 2 instances 

R3 has one instance

-------------

Process P2 using R1 and R2 and waiting for R3.

Process P3 using R3 and waiting for R2.

Process P1 using R2 and waiting for R1.

The graph has deadlock. Because every process is holding some resources and waiting for resources hold by other processes 

i.e P1 is waiting for R1, which is hold by P2 and P2 is waiting for R3 which is hold by P3, where P3 is waiting for R2 which is hold by P1 and P2

So option 2 is wrong 

So option 1 is wrong

 

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education