Program for Banker's Algorithm. #include #include #include #include int n,m,avai[5],need[5][3],alloc[5][3]; int safe(void); void main() { int i,j,k,flag[5],seq[5],resor[3],claim[5][3]; clrscr(); printf("Enter no. of resource types:"); scanf("%d",&m); printf("Enter no. of processes:"); scanf("%d",&n); printf("Enter total no. of instances for each resource:\n"); for(i=0;iclaim[i][j]) { printf("\t%d",i); perror("\nError......... Total Request more than claim"); getch(); exit(1); } else if(need[i][j]>avai[j]) //wait process goto next; else for(j=0;j