All mock tests are FREE till 31 December — register to save your progress

In the design protocol of the critical section problem, each process must ask permission to enter the critical section in …… code; it then executes in the critical section; once it finishes executing in the critical section it enters the …… code. The process then enters the …… code.

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. entry section, exit section, remainder section

Explanation

The standard critical-section protocol structures a process's code into four parts in this cycle: the entry section, where the process requests/acquires permission to enter; the critical section itself; the exit section, where it releases that permission (e.g. clears a flag or signals a semaphore) right after leaving the critical section; and finally the remainder section, covering the rest of the process's code before it loops back to request entry again. Matching this to the blanks — ask permission in the entry section, then after the critical section enter the exit section, then the remainder section — gives entry section, exit section, remainder section, option (ii).

More Computer System Architecture questions