...
Algorithms
January 3, 2025
Operating-Systems
January 4, 2025
Algorithms
January 3, 2025
Operating-Systems
January 4, 2025

Operating-Systems

Question 20

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

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

A
5.0 ms
B
4.33 ms
C
6.33 ms
D
7.33 ms
Question 20 Explanation: 

CT = Completion time
TAT = Turn Around Time
WT = Waiting Time
TAT = CT – AT
WT = TAT – BT
Gantt Chart using pre-emptive shortest job first scheduling algorithm,

Avg. WT = 4+0+11/3 = 5ns
Correct Answer: A
Question 20 Explanation: 

CT = Completion time
TAT = Turn Around Time
WT = Waiting Time
TAT = CT – AT
WT = TAT – BT
Gantt Chart using pre-emptive shortest job first scheduling algorithm,

Avg. WT = 4+0+11/3 = 5ns
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!