'Process Scheduling Shortest Remaining Time (SRT)
I need some confirmation as to which of these 2 answers are the correct ones, as both can be viewed as correct for Shortest Remaining Time (SRT)
Process ArrivalTime ServiceTime
A 3 1
B 1 8
C 6 4
D 6 2
E 7 3
1st Ans: Time 1-2:B, 3:A, 4-5:B, 6-7:D, 8-10:E, 11-14:C, 15-18:B
2nd Ans: Time 1-2:B, 3:A, 4-5:B, 6-7:D, 8-10:E, 11-14:B, 15-18:C
At time 6, B just completed its 4th process, with C and D in queue. Since D, only has 2 service time, it will go ahead of B and C. My question is, after clearing process E, both B and C now has service time of 4 remaining. Which should go first, B or C, and why?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
