Deadlock avoidance in operating system

Deadlock is a state in which a process is waiting for the resource that is already used by another process and that another process is waiting for another resource. There are some techniques used to avoid deadlocks. There are two states involved in it. Safe state Unsafe state Safe state is that in which we run processes in sequence. In that case, all processes requesting resource will be [...]