Shortest Job First (Scheduling) Algorithm
ALGORITHM:Step 1: Inside the structure declare the variables.Step 2: Declare the variable i,j as integer,totwtime and totttime is equal to zero.Step 3: Get the value of „n‟ assign pid as I and get the value of p[i].btime.Step 4: Assign p[0] wtime as zero and tot time as btime and inside the loop calculate wait timeand … Read more