![]() ![]() Critical Section: This part allows one process to enter and modify the shared variable.Entry Section: It is part of the process which decides the entry of a particular process.Here, are four essential elements of the critical section: There is a high probability that data read by the second process will be erroneous. In this operating system tutorial, you will learn:įor Example, process A changing the data in a memory location while another process B is trying to read the data from the same memory location. To avoid this type of inconsistency of data, the processes need to be synchronized with each other. So the change made by one process not necessarily reflected when other processes accessed the same shared data. This can lead to the inconsistency of shared data. It is specially needed in a multi-process system when multiple processes are running together, and more than one processes try to gain access to the same shared resource or data at the same time. Process Synchronization is the task of coordinating the execution of processes in a way that no two processes can have access to the same shared data and resources.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |