I'm trying to understand these scheduling algorithms:
- First-Come-First-Served (FCFS)
- Shortest job first (SJF)
- Shortest remaining time (SRT)
- Round-robin (RR)
So, given some input:
Process Name: A; Arrival Time: 0; Expected CPU Running Time: 3
Process Name: B; Arrival Time: 1; Expected CPU Running Time: 5
Process Name: C; Arrival Time: 3; Expected CPU Running Time: 2
Process Name: D; Arrival Time: 9; Expected CPU Running Time: 5
Process Name: E; Arrival Time: 12; Expected CPU Running Time: 5
FCFS would schedule as AAABBBBBCCDDDDDEEEEE
.
I can't seem to figure the rest out. Can someone help explain the difference to me?
I tried Googling but the result I got for SJF is kind confusing.