Banker's algorithm: a safe promise

Test whether every process can still finish, then decide whether a resource request keeps that promise. Synchronization and deadlock · Operating systems.

One printer is free and a process asks for it. Handing it over fits the pool, yet it could leave every process stuck if each then asked for its full maximum. How can a system tell before it lends?

What you will learn

  • Work out what each process may still need
  • Run the check that finds a safe order of completion
  • Decide whether a request is refused, made to wait, or granted

Lesson outline

  1. Why a process declares a maximum
  2. What each process may still need
  3. The check on paper
  4. A request on trial
  5. The same request for another process

14 minutes · 3 scenes · 0 predict checks · 12 quiz questions

The full lesson is available with Premium.