Skip to content

The Banker algorithm sometimes referred to as the detection algorithm, is a resource allocation and deadlock avoidance algorithm

Notifications You must be signed in to change notification settings

abdumamdouh/Banker-s-Algorithm

Repository files navigation

Banker’s Algorithm

The banker’s algorithm is a resource allocation and deadlock avoidance algorithm.

Data structures

Let ‘n’ be the number of processes in the system and ‘m’ be the number of resources types.

Process Format P0, P1, P2, P3.... Resources Types Format A, B, C, ....

Available Vector :

It is a 1-d array of size ‘m’.

Max Matrix:

It is a 2-d array of size ‘n*m’.

Allocation :

It is a 2-d array of size ‘n*m’.

Need Matrix :

It is a 2-d array of size ‘n*m’.

More About Banker’s Algorithm

for more info about Banker’s Algorithm click here.

test cases

you can find different test case in .txt file

About

The Banker algorithm sometimes referred to as the detection algorithm, is a resource allocation and deadlock avoidance algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published