CS FundamentalsHardGATE CS

Which statement about the difference between an unsafe state and a deadlocked state (Banker's algorithm) is correct?

  1. A. An unsafe state is always a deadlock, only one that is detected earlier
  2. B. An unsafe state may lead to deadlock, but processes may still all finish
  3. C. A safe state can still deadlock if later requests arrive in a bad order
  4. D. Unsafe and deadlocked mean the same thing when there is one resource type

Correct answer: B. An unsafe state may lead to deadlock, but processes may still all finish

Safe means some order lets everyone finish even if all claim their maxima. Unsafe means that guarantee is lost, but if processes ask for less than their declared maximum they may still complete. Deadlock is a subset of unsafe.

More Operating Systems questions

Exams that ask this topic