Question discussion

Which of the following is satisfied by Peterson's solution to the critical-section problem for two processes?

1741Medium DSSSB TGT Computer Science 0 replies

Which of the following is satisfied by Peterson's solution to the critical-section problem for two processes?

  • AMutual exclusion only
  • BMutual exclusion and progress only
  • CProgress and bounded waiting, but not mutual exclusion
  • DMutual exclusion, progress and bounded waiting
Correct answer: D

Explanation

Using a flag array and a turn variable, Peterson's algorithm satisfies all three requirements of a correct critical-section solution.

Discussion 0

Nobody has replied yet. Start the discussion!