Lab. No 11 Pure Priority Scheme OS
Lab. No 11
Pure Priority Scheme
Direction: 2nd Chance Page Replacement.
#include
#define SIZE 3
int full=0;//To check whether all frames are filled
int a[21];//To take the input
intref[SIZE];//This is for reference bits for each frame
int frame[SIZE];
int repptr=0;//Initialised to first frame
int count=0;
int display()
{
int i;
printf("\nThe elements in the frame are\n");
for(i=0;i
Comments
Post a Comment