-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathp2output02-full-FCFS.txt
179 lines (179 loc) · 13.1 KB
/
p2output02-full-FCFS.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
time 0ms: Simulator started for FCFS [Q empty]
time 319ms: Process A0 arrived; added to ready queue [Q A0]
time 321ms: Process A0 started using the CPU for 1448ms burst [Q empty]
time 506ms: Process A1 arrived; added to ready queue [Q A1]
time 821ms: Process A2 arrived; added to ready queue [Q A1 A2]
time 1769ms: Process A0 completed a CPU burst; 24 bursts to go [Q A1 A2]
time 1769ms: Process A0 switching out of CPU; blocking on I/O until time 2379ms [Q A1 A2]
time 1773ms: Process A1 started using the CPU for 971ms burst [Q A2]
time 2379ms: Process A0 completed I/O; added to ready queue [Q A2 A0]
time 2744ms: Process A1 completed a CPU burst; 4 bursts to go [Q A2 A0]
time 2744ms: Process A1 switching out of CPU; blocking on I/O until time 3178ms [Q A2 A0]
time 2748ms: Process A2 started using the CPU for 408ms burst [Q A0]
time 3156ms: Process A2 completed a CPU burst; 14 bursts to go [Q A0]
time 3156ms: Process A2 switching out of CPU; blocking on I/O until time 8670ms [Q A0]
time 3160ms: Process A0 started using the CPU for 316ms burst [Q empty]
time 3178ms: Process A1 completed I/O; added to ready queue [Q A1]
time 3476ms: Process A0 completed a CPU burst; 23 bursts to go [Q A1]
time 3476ms: Process A0 switching out of CPU; blocking on I/O until time 3952ms [Q A1]
time 3480ms: Process A1 started using the CPU for 129ms burst [Q empty]
time 3609ms: Process A1 completed a CPU burst; 3 bursts to go [Q empty]
time 3609ms: Process A1 switching out of CPU; blocking on I/O until time 4875ms [Q empty]
time 3952ms: Process A0 completed I/O; added to ready queue [Q A0]
time 3954ms: Process A0 started using the CPU for 3556ms burst [Q empty]
time 4875ms: Process A1 completed I/O; added to ready queue [Q A1]
time 7510ms: Process A0 completed a CPU burst; 22 bursts to go [Q A1]
time 7510ms: Process A0 switching out of CPU; blocking on I/O until time 8476ms [Q A1]
time 7514ms: Process A1 started using the CPU for 188ms burst [Q empty]
time 7702ms: Process A1 completed a CPU burst; 2 bursts to go [Q empty]
time 7702ms: Process A1 switching out of CPU; blocking on I/O until time 9200ms [Q empty]
time 8476ms: Process A0 completed I/O; added to ready queue [Q A0]
time 8478ms: Process A0 started using the CPU for 2516ms burst [Q empty]
time 8670ms: Process A2 completed I/O; added to ready queue [Q A2]
time 9200ms: Process A1 completed I/O; added to ready queue [Q A2 A1]
time 10994ms: Process A0 completed a CPU burst; 21 bursts to go [Q A2 A1]
time 10994ms: Process A0 switching out of CPU; blocking on I/O until time 11010ms [Q A2 A1]
time 10998ms: Process A2 started using the CPU for 182ms burst [Q A1]
time 11010ms: Process A0 completed I/O; added to ready queue [Q A1 A0]
time 11180ms: Process A2 completed a CPU burst; 13 bursts to go [Q A1 A0]
time 11180ms: Process A2 switching out of CPU; blocking on I/O until time 14926ms [Q A1 A0]
time 11184ms: Process A1 started using the CPU for 302ms burst [Q A0]
time 11486ms: Process A1 completed a CPU burst; 1 burst to go [Q A0]
time 11486ms: Process A1 switching out of CPU; blocking on I/O until time 12816ms [Q A0]
time 11490ms: Process A0 started using the CPU for 732ms burst [Q empty]
time 12222ms: Process A0 completed a CPU burst; 20 bursts to go [Q empty]
time 12222ms: Process A0 switching out of CPU; blocking on I/O until time 12893ms [Q empty]
time 12816ms: Process A1 completed I/O; added to ready queue [Q A1]
time 12818ms: Process A1 started using the CPU for 73ms burst [Q empty]
time 12891ms: Process A1 terminated [Q empty]
time 12893ms: Process A0 completed I/O; added to ready queue [Q A0]
time 12895ms: Process A0 started using the CPU for 1872ms burst [Q empty]
time 14767ms: Process A0 completed a CPU burst; 19 bursts to go [Q empty]
time 14767ms: Process A0 switching out of CPU; blocking on I/O until time 14851ms [Q empty]
time 14851ms: Process A0 completed I/O; added to ready queue [Q A0]
time 14853ms: Process A0 started using the CPU for 1020ms burst [Q empty]
time 14926ms: Process A2 completed I/O; added to ready queue [Q A2]
time 15873ms: Process A0 completed a CPU burst; 18 bursts to go [Q A2]
time 15873ms: Process A0 switching out of CPU; blocking on I/O until time 16361ms [Q A2]
time 15877ms: Process A2 started using the CPU for 89ms burst [Q empty]
time 15966ms: Process A2 completed a CPU burst; 12 bursts to go [Q empty]
time 15966ms: Process A2 switching out of CPU; blocking on I/O until time 15976ms [Q empty]
time 15976ms: Process A2 completed I/O; added to ready queue [Q A2]
time 15978ms: Process A2 started using the CPU for 781ms burst [Q empty]
time 16361ms: Process A0 completed I/O; added to ready queue [Q A0]
time 16759ms: Process A2 completed a CPU burst; 11 bursts to go [Q A0]
time 16759ms: Process A2 switching out of CPU; blocking on I/O until time 17017ms [Q A0]
time 16763ms: Process A0 started using the CPU for 228ms burst [Q empty]
time 16991ms: Process A0 completed a CPU burst; 17 bursts to go [Q empty]
time 16991ms: Process A0 switching out of CPU; blocking on I/O until time 17340ms [Q empty]
time 17017ms: Process A2 completed I/O; added to ready queue [Q A2]
time 17019ms: Process A2 started using the CPU for 107ms burst [Q empty]
time 17126ms: Process A2 completed a CPU burst; 10 bursts to go [Q empty]
time 17126ms: Process A2 switching out of CPU; blocking on I/O until time 17784ms [Q empty]
time 17340ms: Process A0 completed I/O; added to ready queue [Q A0]
time 17342ms: Process A0 started using the CPU for 2092ms burst [Q empty]
time 17784ms: Process A2 completed I/O; added to ready queue [Q A2]
time 19434ms: Process A0 completed a CPU burst; 16 bursts to go [Q A2]
time 19434ms: Process A0 switching out of CPU; blocking on I/O until time 19658ms [Q A2]
time 19438ms: Process A2 started using the CPU for 65ms burst [Q empty]
time 19503ms: Process A2 completed a CPU burst; 9 bursts to go [Q empty]
time 19503ms: Process A2 switching out of CPU; blocking on I/O until time 25377ms [Q empty]
time 19658ms: Process A0 completed I/O; added to ready queue [Q A0]
time 19660ms: Process A0 started using the CPU for 3380ms burst [Q empty]
time 23040ms: Process A0 completed a CPU burst; 15 bursts to go [Q empty]
time 23040ms: Process A0 switching out of CPU; blocking on I/O until time 23101ms [Q empty]
time 23101ms: Process A0 completed I/O; added to ready queue [Q A0]
time 23103ms: Process A0 started using the CPU for 1700ms burst [Q empty]
time 24803ms: Process A0 completed a CPU burst; 14 bursts to go [Q empty]
time 24803ms: Process A0 switching out of CPU; blocking on I/O until time 24914ms [Q empty]
time 24914ms: Process A0 completed I/O; added to ready queue [Q A0]
time 24916ms: Process A0 started using the CPU for 664ms burst [Q empty]
time 25377ms: Process A2 completed I/O; added to ready queue [Q A2]
time 25580ms: Process A0 completed a CPU burst; 13 bursts to go [Q A2]
time 25580ms: Process A0 switching out of CPU; blocking on I/O until time 25914ms [Q A2]
time 25584ms: Process A2 started using the CPU for 69ms burst [Q empty]
time 25653ms: Process A2 completed a CPU burst; 8 bursts to go [Q empty]
time 25653ms: Process A2 switching out of CPU; blocking on I/O until time 29999ms [Q empty]
time 25914ms: Process A0 completed I/O; added to ready queue [Q A0]
time 25916ms: Process A0 started using the CPU for 916ms burst [Q empty]
time 26832ms: Process A0 completed a CPU burst; 12 bursts to go [Q empty]
time 26832ms: Process A0 switching out of CPU; blocking on I/O until time 27752ms [Q empty]
time 27752ms: Process A0 completed I/O; added to ready queue [Q A0]
time 27754ms: Process A0 started using the CPU for 1988ms burst [Q empty]
time 29742ms: Process A0 completed a CPU burst; 11 bursts to go [Q empty]
time 29742ms: Process A0 switching out of CPU; blocking on I/O until time 30511ms [Q empty]
time 29999ms: Process A2 completed I/O; added to ready queue [Q A2]
time 30001ms: Process A2 started using the CPU for 232ms burst [Q empty]
time 30233ms: Process A2 completed a CPU burst; 7 bursts to go [Q empty]
time 30233ms: Process A2 switching out of CPU; blocking on I/O until time 35355ms [Q empty]
time 30511ms: Process A0 completed I/O; added to ready queue [Q A0]
time 30513ms: Process A0 started using the CPU for 3948ms burst [Q empty]
time 34461ms: Process A0 completed a CPU burst; 10 bursts to go [Q empty]
time 34461ms: Process A0 switching out of CPU; blocking on I/O until time 34884ms [Q empty]
time 34884ms: Process A0 completed I/O; added to ready queue [Q A0]
time 34886ms: Process A0 started using the CPU for 340ms burst [Q empty]
time 35226ms: Process A0 completed a CPU burst; 9 bursts to go [Q empty]
time 35226ms: Process A0 switching out of CPU; blocking on I/O until time 35989ms [Q empty]
time 35355ms: Process A2 completed I/O; added to ready queue [Q A2]
time 35357ms: Process A2 started using the CPU for 225ms burst [Q empty]
time 35582ms: Process A2 completed a CPU burst; 6 bursts to go [Q empty]
time 35582ms: Process A2 switching out of CPU; blocking on I/O until time 40272ms [Q empty]
time 35989ms: Process A0 completed I/O; added to ready queue [Q A0]
time 35991ms: Process A0 started using the CPU for 2768ms burst [Q empty]
time 38759ms: Process A0 completed a CPU burst; 8 bursts to go [Q empty]
time 38759ms: Process A0 switching out of CPU; blocking on I/O until time 39031ms [Q empty]
time 39031ms: Process A0 completed I/O; added to ready queue [Q A0]
time 39033ms: Process A0 started using the CPU for 1540ms burst [Q empty]
time 40272ms: Process A2 completed I/O; added to ready queue [Q A2]
time 40573ms: Process A0 completed a CPU burst; 7 bursts to go [Q A2]
time 40573ms: Process A0 switching out of CPU; blocking on I/O until time 40724ms [Q A2]
time 40577ms: Process A2 started using the CPU for 42ms burst [Q empty]
time 40619ms: Process A2 completed a CPU burst; 5 bursts to go [Q empty]
time 40619ms: Process A2 switching out of CPU; blocking on I/O until time 48125ms [Q empty]
time 40724ms: Process A0 completed I/O; added to ready queue [Q A0]
time 40726ms: Process A0 started using the CPU for 1552ms burst [Q empty]
time 42278ms: Process A0 completed a CPU burst; 6 bursts to go [Q empty]
time 42278ms: Process A0 switching out of CPU; blocking on I/O until time 42364ms [Q empty]
time 42364ms: Process A0 completed I/O; added to ready queue [Q A0]
time 42366ms: Process A0 started using the CPU for 224ms burst [Q empty]
time 42590ms: Process A0 completed a CPU burst; 5 bursts to go [Q empty]
time 42590ms: Process A0 switching out of CPU; blocking on I/O until time 43242ms [Q empty]
time 43242ms: Process A0 completed I/O; added to ready queue [Q A0]
time 43244ms: Process A0 started using the CPU for 52ms burst [Q empty]
time 43296ms: Process A0 completed a CPU burst; 4 bursts to go [Q empty]
time 43296ms: Process A0 switching out of CPU; blocking on I/O until time 43376ms [Q empty]
time 43376ms: Process A0 completed I/O; added to ready queue [Q A0]
time 43378ms: Process A0 started using the CPU for 3548ms burst [Q empty]
time 46926ms: Process A0 completed a CPU burst; 3 bursts to go [Q empty]
time 46926ms: Process A0 switching out of CPU; blocking on I/O until time 47069ms [Q empty]
time 47069ms: Process A0 completed I/O; added to ready queue [Q A0]
time 47071ms: Process A0 started using the CPU for 820ms burst [Q empty]
time 47891ms: Process A0 completed a CPU burst; 2 bursts to go [Q empty]
time 47891ms: Process A0 switching out of CPU; blocking on I/O until time 48898ms [Q empty]
time 48125ms: Process A2 completed I/O; added to ready queue [Q A2]
time 48127ms: Process A2 started using the CPU for 335ms burst [Q empty]
time 48462ms: Process A2 completed a CPU burst; 4 bursts to go [Q empty]
time 48462ms: Process A2 switching out of CPU; blocking on I/O until time 53456ms [Q empty]
time 48898ms: Process A0 completed I/O; added to ready queue [Q A0]
time 48900ms: Process A0 started using the CPU for 920ms burst [Q empty]
time 49820ms: Process A0 completed a CPU burst; 1 burst to go [Q empty]
time 49820ms: Process A0 switching out of CPU; blocking on I/O until time 50270ms [Q empty]
time 50270ms: Process A0 completed I/O; added to ready queue [Q A0]
time 50272ms: Process A0 started using the CPU for 1876ms burst [Q empty]
time 52148ms: Process A0 terminated [Q empty]
time 53456ms: Process A2 completed I/O; added to ready queue [Q A2]
time 53458ms: Process A2 started using the CPU for 247ms burst [Q empty]
time 53705ms: Process A2 completed a CPU burst; 3 bursts to go [Q empty]
time 53705ms: Process A2 switching out of CPU; blocking on I/O until time 59667ms [Q empty]
time 59667ms: Process A2 completed I/O; added to ready queue [Q A2]
time 59669ms: Process A2 started using the CPU for 66ms burst [Q empty]
time 59735ms: Process A2 completed a CPU burst; 2 bursts to go [Q empty]
time 59735ms: Process A2 switching out of CPU; blocking on I/O until time 59801ms [Q empty]
time 59801ms: Process A2 completed I/O; added to ready queue [Q A2]
time 59803ms: Process A2 started using the CPU for 155ms burst [Q empty]
time 59958ms: Process A2 completed a CPU burst; 1 burst to go [Q empty]
time 59958ms: Process A2 switching out of CPU; blocking on I/O until time 65720ms [Q empty]
time 65720ms: Process A2 completed I/O; added to ready queue [Q A2]
time 65722ms: Process A2 started using the CPU for 280ms burst [Q empty]
time 66002ms: Process A2 terminated [Q empty]
time 66004ms: Simulator ended for FCFS [Q empty]