DSA Factory
Free Deadlocks lessonsDeadlocks · Stage 0 · What a deadlock is · Step 3

Four ways to handle deadlock

Compare ignoring it, preventing it, avoiding it and detecting it, and which real systems pick which. About 13 minutes.

Quick check

A database lets transactions deadlock, then notices and aborts one of them. Which strategy is this?

  1. ADetection and recovery
  2. BPrevention
  3. CAvoidance
Show the answer

Detection and recovery. It allows the deadlock, finds it, and breaks it by aborting a victim.

Lock it in

4 questions on this idea

Short questions that apply the idea to new cases: trace it, work out a number, put steps in order. A wrong answer explains itself.

Answer them in your browserFree account, no card. Your progress is saved, and the idea comes back in a quick review later.
Sign up free to solve