← 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?
- A.Prevention breaks one of the four conditions; avoidance grants requests only if the state stays safe
- B.They are the same
- C.Avoidance breaks the conditions; prevention uses Banker's
- 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 →