Question 51Asked in DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 2

A computer system has 7 tape drives. There 'n' processes competing for them. Each process may need 2 tape drives. What is the maximum value of 'n' for which…

A computer system has 7 tape drives. There 'n' processes competing for them. Each process may need 2 tape drives. What is the maximum value of 'n' for which the system is guaranteed to be deadlock free?
  1. A2
  2. B3
  3. C4
  4. D1
Show answerHide answer

Correct answer: (B) 3

Explanation

The key fits a need of 3 drives per process: deadlock is impossible if n(3 − 1) + 1 ≤ 7, so n = 3. (If each needed only 2 drives as written, up to 6 processes would be safe.)

From DSSSB TGT Computer Science PYQ (Technical), 7 Aug 2021, Shift 2

This is question 51 of DSSSB TGT Computer Science PYQ (Technical), 7 Aug 2021, Shift 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.