Which of the following algorithm checks for safety by allocating maximum possible resources to each process in some order to avoid a deadlock?
1
Bakery algorithm
2
Bankers algorithm
3
Producer-consumer algorithm
4
Dekkers algorithm
5
None of the above