Implementation of Priority Scheduling Algorithm in C++

#include
#include
struct process
{
int no;
int at;
int et;
int wt;
int tt;
int p;
};

void main()
{
clrscr();
process p[4];
int i,j;

for(i=0;i<4;i++) { cout<<"\n Enter execution time of P"<>p[i].et;
cout<<"\n Enter Priority P"<>p[i].p;
p[i].no=i;
p[i].at=0;
}

cout<<"\n PNO\tAT\tET"; for(i=0;i<4;i++) { cout<<"\n P"<

Leave a Reply

Your email address will not be published. Required fields are marked *