Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
200 views
in Computer by (85.4k points)
closed by

A system shares 9 tape drives. The current allocation and maximum requirement of tape drives for three processes are shown below:

Process

Current Allocation

Maximum Requirement

P1

3

7

P2

1

6

P3

3

5

 

Which of the following best describes current state of the system?


1. Safe, Deadlocked
2. Safe, Not Deadlocked
3. Note Safe, Deadlocked
4. Not Safe, Not Deadlocked

1 Answer

0 votes
by (88.5k points)
selected by
 
Best answer
Correct Answer - Option 2 : Safe, Not Deadlocked

Resource allocation table:

Process

Current Allocation

Maximum Requirement

Need
(Maximum-current)

P1

3

7

4

P2

1

6

5

P3

3

5

2


Available = 9 – ∑ (current allocation to process) = 9 – 7 = 2

Now, 2 resource will satisfy the need of P3.

After this available = 2 + 3 = 5

5 resource can satisfy need of P2 or P1

CASE 1:

If P2 is executed before P1, 

Available = 5 + 1 =6

6 resource can satisfy the need of P1 easily.

CASE 2:

If P1 is executed before P2

Available = 5 + 3 = 8

8 resource can satisfy the need of P1 easily.

Safe sequence will be P3, P1, P2 and P3, P2, P1

System is safe and there is no deadlock in the system.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...