OS Assignment 12
OS Assignment 12
Roll No: 36
PRN : 12210870
Lab Assignment 12
Write a program to implement Banking Algorithm.
#include <stdio.h>
#include <stdbool.h>
struct process_info
{
int max[10];
int allocated[10];
int need[10];
};
int i;
for (i = 0; i < no_of_process && finish[i] == true; i++)
{
continue;
}
if (i == no_of_process)
return true;
else
return false;
}