Bird
Raised Fist0

Which of the following statements about Peterson's algorithm is INCORRECT?

medium🐞 Bug Identification Q14 of Q15
Operating Systems - Critical Section Problem - Requirements & Peterson's Solution
Which of the following statements about Peterson's algorithm is INCORRECT?
AIt can be extended straightforwardly to more than two processes
BIt guarantees mutual exclusion between two processes
CIt ensures progress and bounded waiting
DIt does not require special hardware instructions
Step-by-Step Solution
  1. Step 1: Verify correctness of each statement

    Options A, C, and D are true properties of Peterson's algorithm.
  2. Step 2: Identify incorrect statement

    It can be extended straightforwardly to more than two processes is incorrect because Peterson's algorithm is specifically designed for two processes and does not extend easily to multiple processes.
  3. Final Answer:

    Option A -> Option A
  4. Quick Check:

    Peterson's algorithm is a two-process solution only.
Quick Trick: Peterson's = two-process only, no hardware needed, guarantees progress
Common Mistakes:
MISTAKES
  • Assuming easy extension to multiple processes
  • Confusing bounded waiting with starvation
  • Believing hardware instructions are required
Trap Explanation:
PITFALL
  • Option C is tempting because candidates often overgeneralize Peterson's algorithm. Other options are true and may distract if not carefully considered.
Interviewer Note:
CONTEXT
  • Tests ability to spot misconceptions about Peterson's algorithm's scope and 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