A system has 4 processes sharing 5 resources. If each process needs a maximum of 2 resources then, deadlock:
A system has 4 processes sharing 5 resources. If each process needs a maximum of 2 resources then, deadlock:
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 7RQ
Related questions
Question
Expert Solution
Step 1
Given:
Number of Processes, P = 4
Number of Resources, R = 5
Maximum Resources required by any process, n =2
So, first let us check the condition in which deadlock can never occur: P(n-1) + 1 <=R
If this condition evaluates to true in the given case, then deadlock can never occur.
P(n-1) + 1 = 4(2-1) + 1 = 4 + 1 = 5 <=5
Step by step
Solved in 2 steps
Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage