In preemptive SJF you are taking wait time = TAT-burst time.... And non preemptive SJF you are taking wait time= start time - Arrival time Why is this difference
Assalam o Alikum !! ap ny last lecture non premptive ma waiting time ko arrival time ka sath subtract kiye he or preemptive ma waiting time ko turn around time subtract brust time kiyu kiye he .
You have to follow the sequence of processes. You have to select the process which arrives first.....In below Example P1 and P2 has same arrival time, but you will schedule P1 first because it has arrived first: process Arrival time P1 0 P2 0 P3 1
Easy Engineering Studies.. in this firstly p1 will come.. it will go up to 1ms after that at time 1 p3 is arriving.. it will go up to 1 ms again.. then at time 2 there is no process.. and process p2 is not completed.. then what should we do in this case..?