Operating System :: Process Management - Discussion
6 / 41
Critical section is?
Astatements which are not accessing shared resourses
Bstatements which are accessing shared resourses
Cpart of code where exception can be thrown
DNone of the above
Show Explanation
It means that in a group of cooperating processes, at a given point of time, only one process must be executing its critical section, If any other process also wants to execute its critical section, it must wait until the first one finishes.
NOTE: Only those processes can enter the critical section which are using the shared variables, and not those which are independent.
Asked In ::
A critical section is a code segment that access shared variables and has to be executed as an atomic action.
It means that in a group of cooperating processes, at a given point of time, only one process must be executing its critical section, If any other process also wants to execute its critical section, it must wait until the first one finishes.
NOTE: Only those processes can enter the critical section which are using the shared variables, and not those which are independent.
Read Full Answer
Report Error
Please Login First Click Here