In design protocol of critical section problem, each process must ask…
2022
In design protocol of critical section problem, each process must ask permission to enter critical section in ________ code; it then executes in the critical section; once it finishes executes in the critical section it enters the_________ code. The process then enters the ________ code.
- A.
entry section, remainder section, exit section
- B.
entry section, exit section, remainder section
- C.
remainder section, entry section, exit section
- D.
remainder section, exit section, entry section
Attempted by 530 students.
Show answer & explanation
Correct answer: B
Correct sequence: entry section → critical section → exit section → remainder section
Entry section: code where the process requests permission and performs synchronization before entering the critical section.
Critical section: the region where the process accesses shared resources and must have exclusive access.
Exit section: code that the process runs after leaving the critical section to release locks or signals so others can enter.
Remainder section: non-critical work the process performs after the exit section.
A video solution is available for this question — log in and enroll to watch it.