Critical Section (Operating System)
Rajkumar Lama
August 21, 2019
Critical Section
,
Critical section in OS
,
MICT 1st semester notes
,
Operating System
,
OS
,
OS Notes
- One way to avoid race conditions is not to allow two processes to be in their critical sections at the same time.
- Critical section is the part of the process that accesses a shared variable.
- That is, we need a mechanism of mutual exclusion. Mutual exclusion is the way of ensuring that one process, while using the shared variable, does not allow another process to access that variable.