Experiment-3: AIM: To Implement The FCFS Algorithm
Experiment-3: AIM: To Implement The FCFS Algorithm
//printf("%d", wt[1]);
for(i=0; i<3; i++)
{
sum += wt[i];
}
//printf("%d", awt);
awt = sum/3;
printf("\nAverage waiting time for the given set is
%d", awt);
printf("\nTurn around time are :%d %d %d", tat[0],
tat[1], tat[2]);
printf("\nWaiting time are :%d %d %d", wt[0], wt[1],
wt[2]);
atat= (tat[0] + tat[1] + tat[2]) /3;
printf("\nAverage turn around time : %d", atat);
getch();
}
Output: