diff --git a/Algorithms/bankers-algorithm.c b/Algorithms/bankers-algorithm.c new file mode 100644 index 00000000..a581c78f --- /dev/null +++ b/Algorithms/bankers-algorithm.c @@ -0,0 +1,65 @@ +#include + +void main() { + int k=0,output[10],d=0,t=0,ins[5],i,avail[5],allocated[10][5],need[10][5],MAX[10][5],pno,P[10],j,rz, count=0; + + printf("\n Enter the number of resources : "); + scanf("%d", &rz); + printf("\n enter the max instances of each resources\n"); + for (i=0;i"); + +}