diff --git a/c/sjfscheduling.c b/c/sjfscheduling.c new file mode 100644 index 0000000..81a0385 --- /dev/null +++ b/c/sjfscheduling.c @@ -0,0 +1,61 @@ +#include +int main() +{ + int i,n,j,total_wt=0,total_tat=0,pos,temp; + float avg_wt,avg_tat; + int bt[10],proc[10],wt[10],tat[10]; + + printf("Enter the no of processes:"); + scanf("%d",&n); + for(i = 0;i