Posts

Showing posts from January, 2017

PROCESS SYNCHRONIZATION and RACE CONDITION

Image
·          Process synchronization   refers to the idea that multiple   processes   are to join up or handshake at a certain point, in order to reach an agreement or commit to a certain sequence of action. (to meet in such a way to reach the processes to completion, not to reach to deadlock) ·          Process Synchronization means sharing system resources by processes in such a way that, Concurrent access to shared data is handled thereby minimizing the chance of inconsistent data.  ·          Process Synchronization was introduced to handle problems that arose while multiple process executions. Some of the problems are: 1.       Critical problem 2.       Synchronization hardware 3.       Mutex locks 4.       Semaphores RACE CONDITION A situation like this, where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which the access takes place, is called a race condition. A   race condition