How operating systems enable processes to share and exchange information
A critical section is
the part of the process where the code for accessing the shared resources is
written. The critical section problem refers to a solution which allows the
processes to cooperate when they share common resources. In order for this to
happen, a process must take care of three properties: mutual exclusion,
progress, and bounded wait.
- Mutual Exclusion: Only one process can execute its critical
section at a time.
- Progress: If a process doesn’t want to enter in its critical
section, it should not be permitted to block another process from entering
- Bounded Waiting: Bounded time up to which the process has to
wait to enter its critical section after making the request. Ensures every
process requesting to enter its critical section get the chance within the
finite amount of time.
GeeksforGeeks (2019, Oct 28). Peterson's Alogorithm in Process Synchronization. Retrieved from https://www.geeksforgeeks.org/petersons-algorithm-in-process-synchronization/
Silberschatz, A., Galvin, P. B., & Gagne, G. (2014). Operating system concepts essentials (2nd ed.). Retrieved from https://redshelf.com/
Comments
Post a Comment