Deadlock Handling in OS
Deadlock Handling in OS Deadlocks introduction: In a computer system, a situated arise when two or more processes attempt to access some resources, but the resources are locked by the other processes, and hence cannot be shared. Each of these processes will keep on waiting for its required resource which is held by some other process. No process will finish ever as each process is in waiting for the state. Such a situation is called a deadlock. In other words,'' a set of different processes is said to be in a deadlock state if every process in the set is waiting for an event that can be caused by another process in the set of a computer network system. Deadlock Example Deadlock may occur in the computer system as well as in daily life activities. Here are some examples of deadlock: A deadlock situation may also arise in the real world. Suppose two trains approach each other from the opposite side on a single track as shown. Each train wishes another one to get back to mack wa...