🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: OS Interview Questions: all 10 questions

Quiz: OS Interview Questions · Question 3 of 10

Deadlock prevention vs avoidance — which is correct?

Deadlock prevention vs avoidance — which is correct?

  1. A.Prevention breaks one of the four conditions; avoidance grants requests only if the state stays safe
  2. B.They are the same
  3. C.Avoidance breaks the conditions; prevention uses Banker's
  4. D.Prevention detects cycles after they form
Answer & explanation

Correct answer: Prevention breaks one of the four conditions; avoidance grants requests only if the state stays safe

Banker's algorithm is avoidance; ordering resources is prevention.

Can you get the rest right without peeking?

Take the timed Quiz: OS Interview Questions quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →