GATE CSE 2017 Session 2 Q43: Safe state and deadlock check with 9 tape drives
- Operating System
- 2 marks
- MCQ
- −2/3 if wrong
Syllabus topic: Deadlock
Question
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?
Try it: multiple choice: exactly one correct option
Show answer and explanation
Answer: B (official GATE 2017 final answer key)
Concept used: Banker's safety check: a state is safe if some order lets every process obtain its remaining need from the available drives and then release them.
First step: Compute available drives as 9 minus the total allocation, and each process's remaining need as maximum minus allocation; look for a process whose need fits.
Full step-by-step solution
Loading…
Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.
More questions on Deadlock
Every PYQ on this topic →Share this question
Source: official GATE 2017 Session 2 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key
More Operating System PYQs
- 2026 Session 1 · Q29False statements about deadlocks
- 2026 Session 1 · Q35Minimum resource instances for deadlock freedom (5 processes, max 2)
- 2026 Session 1 · Q59Disk transfer time for random sectors on tracks 5, 12, 7
- 2026 Session 1 · Q63Number of printf calls with fork, continue and break
- 2026 Session 1 · Q64Average FCFS waiting time for alternating A and C processes
- 2026 Session 2 · Q23CPU scheduling algorithm that cannot be preemptive