DSA Factory
Free Deadlocks lessonsDeadlocks · Stage 1 · Avoidance and detection · Step 2

Granting a request

Use the safety check to decide whether a process's request can be granted now, delayed, or must be refused. About 13 minutes.

Quick check

A request is within the process's claim and there are enough free resources, but granting it leaves an unsafe state. What does the banker's algorithm do?

  1. AMakes the process wait, even though the resources are free
  2. BGrants it, since the resources are available
  3. CTerminates the process
Show the answer

Makes the process wait, even though the resources are free. It won't move into an unsafe state.

Lock it in

4 questions on this idea

Short questions that apply the idea to new cases: trace it, work out a number, put steps in order. A wrong answer explains itself.

Answer them in your browserFree account, no card. Your progress is saved, and the idea comes back in a quick review later.
Sign up free to solve