← Back to Operating System

7. Deadlocks - Operating System

📖 From Operating System • 880 questions available

Practice MCQs for 7. Deadlocks. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.

🔄 Last updated: 2026-07-11

184
Easy Questions
426
Medium Questions
270
Hard Questions

📝 Topics in this Chapter

📝 Sample Questions

Q1. What are the two primary factors determining how often to invoke the deadlock detection algorithm?

🔹 A. CPU speed and memory size.
🔹 B. How often deadlocks occur and how many processes are affected.
🔹 C. Number of resources and number of users.
🔹 D. Disk space and network bandwidth.

💡 Difficulty: easy | ✅ Correct: B

Q2. Can the detection algorithm prevent deadlocks?

🔹 A. Yes, if run frequently.
🔹 B. No, it only detects them after they occur.
🔹 C. Yes, if it identifies the cause.
🔹 D. No, it only avoids them.

💡 Difficulty: medium | ✅ Correct: B

Q3. Consider a system with three processes and three resource types. The system enters a deadlock. What is the most direct consequence for the involved processes?

🔹 A. They will be automatically restarted by the operating system.
🔹 B. They will eventually time out and release their resources.
🔹 C. They will be unable to complete their execution and may wait indefinitely.
🔹 D. They will continue executing with degraded performance.

💡 Difficulty: hard | ✅ Correct: C

⬆️ View all questions in the quiz below

🚀 Start Quiz 📝 Practice Mode