#include struct process { int pid; int burst_time; }; void sort(struct process p[], int n) { int i, j; struct process temp; for(i=0; i p[j].burst_time) { temp = p[i]; p[i] = p[j]; p[j] = temp; } } } } void sjf(struct process p[], int n) { int i, total_time = 0; float avg_wait_time = 0, avg_turnaround_time = 0; sort(p, n); printf("\nProcess\tBurst Time\tWaiting Time\tTurnaround Time\n"); for(i=0; i