First-Come, First-Served (FIFO) : Start Jobs in The Order They Arrive (FIFO Queue) Run Each Job Until Completion
First-Come, First-Served (FIFO) : Start Jobs in The Order They Arrive (FIFO Queue) Run Each Job Until Completion
Start jobs in the order they arrive (FIFO queue) Run each job until completion
Process 1 2 3 4 5 Arrival Time 0 2 4 6 8 Processing Time 3 6 4 5 2
Turnaround Time
Turnaround Time
10
15
20
Turnaround Time
10
15
20
10
Turnaround Time
10
15
20
11
Turnaround Time
10
15
20
12
Turnaround Time
10
15
20
13
Turnaround Time
10
15
20
14
Turnaround Time
10
15
20
15
Turnaround Time
10
15
20
16
Turnaround Time
10
15
20
17
Turnaround Time
10
15
20
18
Turnaround Time
10
15
20
19
Turnaround Time
10
15
20
20
Turnaround Time
10
15
20
21
Turnaround Time
10
15
20
22
Turnaround Time 3 7 9 12 12
10
15
20
23
24
10
15
20
25
10
15
20
26
10
15
20
27
10
15
20
28
10
15
20
29
10
15
20
30
10
15
20
31
10
15
20
32
10
15
20
33
10
15
20
34
10
15
20
35
10
15
20
36
10
15
20
37
10
15
20
38
10
15
20
39
Process 1 2 3 4 5
Delay
10
15
20
40
Process 1 2 3 4 5
Delay
10
15
20
41
Process 1 2 3 4 5
Delay
10
15
20
42
Process 1 2 3 4 5
Delay
10
15
20
43
Process 1 2 3 4 5
Delay
10
15
20
44
Process 1 2 3 4 5
Delay
10
15
20
45
Process 1 2 3 4 5
Delay
10
15
20
46
Process 1 2 3 4 5
Delay
10
15
20
47
Process 1 2 3 4 5
Delay
10
15
20
48
Process 1 2 3 4 5
Delay
10
15
20
49
Process 1 2 3 4 5
Delay
10
15
20
50
Process 1 2 3 4 5
Delay
10
15
20
51
Process 1 2 3 4 5
Delay
10
15
20
52
Process 1 2 3 4 5
Delay
10
15
20
53
Process 1 2 3 4 5
Delay 0 7 0 9 0
10
15
20
54
Process 1 2 3 4 5
Delay 0 7 0 9 0
10
15
20
55
Round-Robin Scheduling
Goal: Enable interactivity
Limit the amount of CPU that a process can have at one time.
Time quantum
Amount of time the OS gives a process before intervention The time slice Typically: 1 to 100ms
56
Round-Robin Scheduling
10
15
20
57
Round-Robin Scheduling
10
15
20
58
Round-Robin Scheduling
10
15
20
59
Round-Robin Scheduling
10
15
20
60
Round-Robin Scheduling
10
15
20
61
Round-Robin Scheduling
10
15
20
62
Round-Robin Scheduling
10
15
20
63
Round-Robin Scheduling
10
15
20
64
Round-Robin Scheduling
10
15
20
65
Round-Robin Scheduling
10
15
20
66
Round-Robin Scheduling
10
15
20
67
Round-Robin Scheduling
10
15
20
68
Round-Robin Scheduling
10
15
20
69
Round-Robin Scheduling
10
15
20
70
Round-Robin Scheduling
10
15
20
71
Round-Robin Scheduling
10
15
20
72
Round-Robin Scheduling
10
15
20
73
Round-Robin Scheduling
10
15
20
74
Round-Robin Scheduling
10
15
20
75
Round-Robin Scheduling
10
15
20
76
Round-Robin Scheduling
10
15
20
77
Round-Robin Scheduling
10
15
20
78
Round-Robin Scheduling
10
15
20
79
Round-Robin Scheduling
10
15
20
80
Round-Robin Scheduling
10
15
20
81
Round-Robin Scheduling
10
15
20
82
Round-Robin Scheduling
10
15
20
83
Round-Robin Scheduling
10
15
20
84