Shortest Job First (SJF) (FCFS) c\ program code example
Example: Shortest Job First (SJF) (FCFS) c\ program
#include
int main()
{
int bt[20],p[20],wt[20],tat[20],i,j,n,total=0,pos,temp;
float avg_wt,avg_tat;
printf("Enter number of process:");
scanf("%d",&n);
printf("nEnter Burst Time:n");
for(i=0;i