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
- Why a process declares a maximum
- What each process may still need
- The check on paper
- A request on trial
- The same request for another process
14 minutes · 3 scenes · 0 predict checks · 12 quiz questions
The full lesson is available with Premium.