Bird
Raised Fist0

Identify the subtle bug in this statement about Peterson's algorithm: "It guarantees mutual exclusion and progress but does not guarantee bounded waiting."

medium🐞 Bug Identification Q7 of Q15
Operating Systems - Critical Section Problem - Requirements & Peterson's Solution
Identify the subtle bug in this statement about Peterson's algorithm: "It guarantees mutual exclusion and progress but does not guarantee bounded waiting."
AThe statement is correct as is
BIt does not guarantee mutual exclusion, so the statement is incorrect
CIt guarantees bounded waiting but not progress, so the statement is incorrect
DPeterson's algorithm guarantees bounded waiting, so the statement is incorrect
Step-by-Step Solution
Solution:
  1. Step 1: Recall Peterson's algorithm guarantees

    It guarantees mutual exclusion, progress, and bounded waiting.
  2. Step 2: Analyze the statement

    The statement claims bounded waiting is not guaranteed, which is false.
  3. Step 3: Verify other options

    Mutual exclusion and progress are guaranteed, so options B and C are incorrect. The statement is correct as is contradicts known facts.
  4. Final Answer:

    Option D -> Option D
  5. Quick Check:

    Peterson's algorithm guarantees bounded waiting [OK]
Quick Trick: Peterson's algorithm guarantees bounded waiting [OK]
Common Mistakes:
MISTAKES
  • Believing bounded waiting is not guaranteed
  • Confusing progress with bounded waiting
Trap Explanation:
PITFALL
  • Candidates often confuse bounded waiting with progress, leading to incorrect claims about guarantees.
Interviewer Note:
CONTEXT
  • Tests precise knowledge of Peterson's algorithm guarantees.
Master "Critical Section Problem - Requirements & Peterson's Solution" in Operating Systems

2 interactive learning modes - each teaches the same concept differently

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Operating Systems Quizzes