CS FundamentalsHardGATE CS

How many of these statements about the critical-section problem are correct? 1. Progress means only processes not in their remainder section take part in deciding who enters next, and the decision cannot be postponed indefinitely. 2. Bounded waiting limits how many times others may enter before a requesting process does. 3. Strict alternation (turn variable only) satisfies progress. 4. Peterson's solution works for any number of processes without change.

  1. A. 3
  2. B. 1
  3. C. 4
  4. D. 2

Correct answer: D. 2

1 and 2 are the standard definitions. Strict alternation fails progress (a process can be blocked by one in its remainder section), and Peterson's algorithm as given is for two processes; n processes need a generalisation such as the filter or bakery algorithm.

More Operating Systems questions

Exams that ask this topic