..

Deadlock avoidance

A deadlock can be avoided by only granting access to a resource if the state after such grant is a safe one. One of the most famous deadlock avoidance algorithm is the Banker_s algorithm