Abstract


  • An algorithm for deadlock avoidance that simulates the allocation of resources to processes and helps in deciding whether it is safe to grant a resource request based on the future availability of resources, thus avoiding unsafe states
  • Used in banking to make sure banks don’t run out of liquidity aka money aka in Safe State
  • 2 out 3 pieces of info needed - Max, Allocation & Need, number of Process (进程) and either Total or Available to calculate the Need and check if system in Safe State (if safe, we need the find the Safe Sequence)

Safe State

  • When we don’t run out of resources

Safe Sequence

Max

Allocation

Available

Total

Need

References