-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput
205 lines (168 loc) · 3.75 KB
/
output
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
processes loaded
Ready queue loaded
running algorithm
Time: 0
Current process running: 1 with 3 time units left.
IO Queue:
queue empty
Ready Queue:
Process 2 waiting to start new cpu burst
Time 3
Process 1 completed cpu burst. sending to io
Time: 3
CPU idle.
IO Queue:
Process 1 has 15 left until finished.
Ready Queue:
Process 2 waiting to start new cpu burst
Time: 3; Process 2 now running.
Time: 3
Current process running: 2 with 2 time units left.
IO Queue:
Process 1 has 15 left until finished.
Ready Queue:
queue empty
Time 5
Process 2 completed cpu burst. sending to io
Time: 5
CPU idle.
IO Queue:
Process 1 has 13 left until finished.
Process 2 has 20 left until finished.
Ready Queue:
queue empty
Time 18
Process 1 completed io. sending to ready queue
Time: 18
CPU idle.
IO Queue:
Process 2 has 7 left until finished.
Ready Queue:
Process 1 waiting to start new cpu burst
Time: 18; Process 1 now running.
Time: 18
Current process running: 1 with 3 time units left.
IO Queue:
Process 2 has 7 left until finished.
Ready Queue:
queue empty
Time 21
Process 1 completed final cpu burst. sending to done list
Time: 21
CPU idle.
IO Queue:
Process 2 has 4 left until finished.
Ready Queue:
queue empty
Time 25
Process 2 completed io. sending to ready queue
Time: 25
CPU idle.
IO Queue:
queue empty
Ready Queue:
Process 2 waiting to start new cpu burst
Time: 25; Process 2 now running.
Time: 25
Current process running: 2 with 27 time units left.
IO Queue:
queue empty
Ready Queue:
queue empty
Time 30
Process 2 finished allocated cpu time (did not finish burst). sending to ready queue
Time: 30
CPU idle.
IO Queue:
queue empty
Ready Queue:
Process 2 waiting to resume, with 22 left until finished current burst.
Time: 30; Process 2 now running.
Time: 30
Current process running: 2 with 22 time units left.
IO Queue:
queue empty
Ready Queue:
queue empty
Time 35
Process 2 finished allocated cpu time (did not finish burst). sending to ready queue
Time: 35
CPU idle.
IO Queue:
queue empty
Ready Queue:
Process 2 waiting to resume, with 17 left until finished current burst.
Time: 35; Process 2 now running.
Time: 35
Current process running: 2 with 17 time units left.
IO Queue:
queue empty
Ready Queue:
queue empty
Time 40
Process 2 finished allocated cpu time (did not finish burst). sending to ready queue
Time: 40
CPU idle.
IO Queue:
queue empty
Ready Queue:
Process 2 waiting to resume, with 12 left until finished current burst.
Time: 40; Process 2 now running.
Time: 40
Current process running: 2 with 12 time units left.
IO Queue:
queue empty
Ready Queue:
queue empty
Time 45
Process 2 finished allocated cpu time (did not finish burst). sending to ready queue
Time: 45
CPU idle.
IO Queue:
queue empty
Ready Queue:
Process 2 waiting to resume, with 7 left until finished current burst.
Time: 45; Process 2 now running.
Time: 45
Current process running: 2 with 7 time units left.
IO Queue:
queue empty
Ready Queue:
queue empty
Time 50
Process 2 finished allocated cpu time (did not finish burst). sending to ready queue
Time: 50
CPU idle.
IO Queue:
queue empty
Ready Queue:
Process 2 waiting to resume, with 2 left until finished current burst.
Time: 50; Process 2 now running.
Time: 50
Current process running: 2 with 2 time units left.
IO Queue:
queue empty
Ready Queue:
queue empty
Time 52
Process 2 completed final cpu burst. sending to done list
Time: 52
CPU idle.
IO Queue:
queue empty
Ready Queue:
queue empty
Test complete. Total runtime 52
Process 1:
Run time : 6
IO time: 15
Waiting time : 0
Response time : 0
Process 2:
Run time : 29
IO time: 20
Waiting time : 3
Response time : 3
Averages:
Waiting time: 1.5
Response time: 1.5