A system has three resource types. Before granting a resource request, the operating system checks whether the resulting state remains safe. Which deadlock-handling technique is being used?

Options

  • A. Deadlock prevention
  • B. Deadlock avoidance
  • C. Deadlock detection
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. Deadlock avoidance

Detailed Explanation

Explanation: Deadlock avoidance dynamically examines resource requests and grants them only if the resulting system state remains safe. The Banker's algorithm is a well-known deadlock avoidance algorithm.