Process synchronization-oocomputerworld Process synchronization:- Process synchronization is the task coordinating the execution of process in a way that no two process can have excess to the same shared data and resources it is specially needed in multi process system when multiple process are running together and more than one process try to gain access to the same shared resources or data at the same time this can lead to inconsistency of shared data, So the changes made by one process note necessary reflected when other processes access the same shared data. To avoid the this type of inconsistency of data, the process need to be synchronize with each other. When two or more process operated with each other, their order of execution must be preserved otherwise there can be conflicts in their execution and in appropriate output can be produced. A Co-operative process is the one other one which can affect the execution of other process or can be affected by execution of ...
Deadlock in operating system-computer world Deadlock : In a multi-programming environment, many process may complete for a minute number of resources. A process make a request for a resource and if the resource is not available at that time, the process enter In a waiting state. A waiting state process is never again-able to change state because the resource it has requested is held by other waiting process. This situation is called deadlock. So we can say that a process is said to be deadlock when it is waiting for an event or resources which will never occurs. so we can say that in this situation none of the process gets executed since the resource it needs, is held by some other process which is also waits for some other resource to be released. Let's assume that there are three process P1, P2, p3 and three different resources R1, R2 and R3. R1 is assigned to p1, R2 is assigned to P2 and R3 is assigned to P3. After somet...