Pno |
Arrival Time |
1st IO |
Burst time |
2nd IO |
P1 |
0 |
4 |
14 |
2 |
P2 |
0 |
8 |
28 |
4 |
P3 |
0 |
12 |
42 |
6 |
Using SRTF:-
Completion time :- P1 - 18, P2 - 46, P3 - 88
Turnaround Time:- According to the definition of Galvin it is
Turnaround time is the sum of the periods spent waiting to get into the memory, waiting in the ready queue, executing on the CPU, and Doing I/O. Page no = 187, 8th Edition
P1 - 20, P2 - 50, P3 - 94.
Waiting time :- According to the definition of Galvin it is
Waiting time is the sum of periods spent waiting in the ready queue. Page no = 187, 8th Edition
WT = TAT - Burst time - IO time
P1 = 20 - 14 - 4 - 2 = 0.
P2 = 50 - 28 - 8 - 4 = 10
P3 = 94 - 42 - 12 - 6 = 34.
Someone Verify these calculations.