A system has 4 processes sharing 5 resources. If each process needs a maximum of 2 resources then, deadlock:

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 7RQ
icon
Related questions
Question
A system has 4 processes sharing 5 resources. If each process needs a
maximum of 2 resources then, deadlock:
O A. Has to occur
ОВ. Мау осcur
O C. Can never occur
O D. None of the answers
Next page
O.S. Structures ►
Jump to...
Transcribed Image Text:A system has 4 processes sharing 5 resources. If each process needs a maximum of 2 resources then, deadlock: O A. Has to occur ОВ. Мау осcur O C. Can never occur O D. None of the answers Next page O.S. Structures ► Jump to...
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

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage