What is Safe State And use in deadlock avoidance

"Safe State" name itself gives an idea of the system state...
Its a state of the system where current resource requests can all be satisfied by following some sequence of allocation, that is there currently no scope for a deadlock to occur.
So transitions to unsafe state (a state that is not in deadlock, but is not safe too)
should be avoided. Thus, at any point of time, if a process requests an available resource, system must decide if immediate allocation leaves the system in a safe state or not.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.