CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider three processes (process id 0, 1, 2, respectively) with compute time bursts 2, 4, and 8 time units. All processes arrive at time zero. Consider the longest remaining time first (LRTF) scheduling algorithm. In LRTF ties are broken by giving priority to the process with the lowerst process id. The average turn around time is

A
14 units
No worries! Weā€˜ve got your back. Try BYJUā€˜S free classes today!
B
15 units
No worries! Weā€˜ve got your back. Try BYJUā€˜S free classes today!
C
13 units
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
16 units
No worries! Weā€˜ve got your back. Try BYJUā€˜S free classes today!
Open in App
Solution

The correct option is C 13 units
Process id Arrival Time CPU burst
P0
P1
P2
0
0
0
2
4
8

The Gantt chart for LRTF CPU scheduling algorithm.
P0 P1 P2 P2 P2 P2 P2 P1 P2 P1 P2 P0 P1 P2
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Turn around time for P0 = 12 - 0 = 12
Turn around time for P1 = 13 - 0 = 13
Turn around time for P2 = 14 - 0 = 14
Average Turn Around Time
=393=13

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Info, Info, and More Info
HISTORY
Watch in App
Join BYJU'S Learning Program
CrossIcon