Skip to main content
🔒 Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.
Start 7-day trial →
⚡
← Courses
›
Interview Prep
›
Module 6 · Concurrency, OS, ML Interview Topics
›
Deadlock: Coffman's 4 conditions
quiz
89 / 104
🇺🇸
EN
▼
↗
Share
⋯
More
+100 XP
📋
Task
📖
Theory
🤖
AI Help
Task
📝 **Question:** Most practical deadlock prevention? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
🎯 Quiz
Question
📝 **Question:** Most practical deadlock prevention? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
A
Remove every `threading.Lock` from the codebase and rely on the GIL for correctness.
B
Strict global lock-ordering across the codebase — breaks circular wait.
C
Sprinkle random `time.sleep` calls between lock acquisitions to break circular waits.
D
Pin every workload to a single OS thread — single-threaded execution makes deadlock impossible.
Submit answer
💬 Discussion
Be the first to ask a question or share a tip.
Sign in
to join the discussion. Reading is free.
Loading discussion…