Q52.Marks: +2.0UGC NET Paper 2: Computer Science 11 March 2023
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.
The correct answer is entry section, exit section, remainder section
Key PointsThe critical section problem is a set of rules or protocols for managing concurrent access to a resource that is shared among several processes. The protocols define that:
Each process must ask permission to enter the critical section in the "entry section" code.
It then executes in the "critical section" where it has exclusive access to the shared resource.
Once it finishes execution in the critical section, it enters the "exit section" code where it signals that it has finished with the shared resource.
The process then enters the "remainder section" code where it executes the non-critical part of its code that doesn't involve the shared resource.
So, the flow is: Entry section -> Critical section -> Exit section -> Remainder section.