wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following table of arrival time and burst time for three processes P0, P1 and P2

Process Arrival time Burst time
P0 0 ms 9 ms
P1 1 ms 4 ms
P2 2 ms 9 ms

The pre-emptive shortest job first scheduling alogrithm is used. Scheduling is carried out only at arrival or completion of processes. What is the average waiting time for th three processes?

A
6.33 ms
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
7.33 ms
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
4.33 ms
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
5.0 ms
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D 5.0 ms

Average waitin time
=w1+w2+w33=(51)+0+(132)3
= 5.0 ms

flag
Suggest Corrections
thumbs-up
3
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Scheduling Criteria & Process Times
OTHER
Watch in App
Join BYJU'S Learning Program
CrossIcon