From dae3ed312fbe4873edc4f2b818b98af1e913fb17 Mon Sep 17 00:00:00 2001 From: DIVYA ROSE RAJU Date: Thu, 31 Oct 2019 19:01:58 +0530 Subject: [PATCH] added file --- Algorithms/bankers-algorithm.c | 65 ++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Algorithms/bankers-algorithm.c 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"); + +}