2

When preforming the banker's algorithm, what happens when there is a deadlock? Will it pick the first one?

user2980816
  • 61
  • 1
  • 1
  • 4

1 Answers1

2

The banker's algorithm is used to avoid deadlocks, not to handle them. If a system is working under this algorithm you won't have any dead lock. If a request of resources by a process could take the system to a dead lock the process has to wait until more resources are avaible.

MQ87
  • 938
  • 12
  • 29