Multiple choice

The method for dealing with the deadlock problem is

  1. to use a protocol to make sure that the system enters into a deadlock state

  2. to allow the system to enter a deadlock state and then recover

  3. to ignore the problem, and pretend that deadlocks never occur in the system. The UNIX operating system uses this solution

  4. both (2) and (3)

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Deadlock handling strategies include prevention, avoidance, detection and recovery, or ignoring the problem entirely. The ostrich algorithm (ignoring deadlocks) is used by systems like UNIX because deadlocks are rare in practice. Some systems allow deadlocks to occur and then use recovery mechanisms like rollback or resource preemption.