0 0 votes Operating System process-scheduling + – Debanjan_2000 595 views answer comment Share Follow Print See all 2 Comments 2 2 Comments reply aie0063 commented Jul 19, 2024 reply Follow flag As the name suggests in SJF scheduling, the job with the shortest burst time will be executed first. Hence, we assume the arrival time for all jobs to be 0ms and then the CPU schedule would be: P4, P1, P3, P2. Now, all you need to do is calculate the completion time of all the processes and see how long one has to wait before it can be executed. 0 0 replyShare Debanjan_2000 commented Jul 19, 2024 reply Follow flag Thanks. So if arrival time is not given then we have to consider it to be zero for all processes. 0 0 replyShare Please log in or register to add a comment.
3 3 votes Option B is wrong. Since nothing about the arrival time is mentioned we will consider it to be zero. Now that we use SJF, order of execution will be: p4 p1 p3 p2. So wait times will be 0, 3, 9, 16. kingjuno answered Jul 20, 2024 kingjuno comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes Option B is wrong, after calculating the Completion time values and the T.A.T, you can calculate the waiting time.Since this is using SJF, the execution order will be: p4,p1,p3,p2ProcessArrive TimeBurst TimeCompletion TimeTurn Around TimeWaiting timeA06993B08181810C0716169D03330 Alucard2169 answered Aug 13, 2024 Alucard2169 comment Share Follow 0 reply Please log in or register to add a comment.