Avoiding Deadlock: Bankers Algorithm

The system is said to be in a safe state if there exists a sequence of other valid system states that leads to the successful completion of all processes.

Reference: http://www.cm.cf.ac.uk/User/O.F.Rana/os/lectureos12/node6.html