-
Notifications
You must be signed in to change notification settings - Fork 1
/
output (1).txt
211 lines (183 loc) · 9.68 KB
/
output (1).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
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
206
207
208
209
210
211
Process list in FCFS order as entered:
1 1 5
2 50 1
3 17 7
4 20 2
End of list.
fcfs wait of p 1 = 0
fcfs wait of p 2 = 1
fcfs wait of p 3 = 51
fcfs wait of p 4 = 68
average wait time for 4 procs = 30.0000
FCFS turn-around time for p1 = 1
FCFS turn-around time for p2 = 51
FCFS turn-around time for p3 = 68
FCFS turn-around time for p4 = 88
average turn-around time for 4 procs =52.0000
fcfs throughput for 4 procs = 0.0455 proc/ms
<><> end fcfs schedule <><>
Process list in HPF order:
2 50 1
4 20 2
1 1 5
3 17 7
End of list.
hpf wait of p 1 = 0
hpf wait of p 2 = 50
hpf wait of p 3 = 70
hpf wait of p 4 = 71
average wait time for 4 procs = 47.7500
HPF turn-around time for p1 = 50
HPF turn-around time for p2 = 70
HPF turn-around time for p3 = 71
HPF turn-around time for p4 = 88
average turn-around time for 4 procs =69.7500
hpf throughput for 4 procs = 0.0455 proc/ms
<><> end hpf schedule <><>
Process list for RR in order entered:
1 1 5
2 50 1
3 17 7
4 20 2
End of list.
preemptive RR schedule, quantum = 1 overhead = 0
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 51, needed: 17 ms, and: 17 time slices.
RR TA time for finished p4 = 58, needed: 20 ms, and: 20 time slices.
RR TA time for finished p2 = 88, needed: 50 ms, and: 50 time slices.
RR Throughput, 4 p with q: 1, o: 0, is: 0.0455 p/ms, or 45.4545 p/us
Average RR TA, 4 p with q: 1, o: 0, is: 49.5000
preemptive RR schedule, quantum = 1 overhead = 1
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 101, needed: 17 ms, and: 17 time slices.
RR TA time for finished p4 = 115, needed: 20 ms, and: 20 time slices.
RR TA time for finished p2 = 175, needed: 50 ms, and: 50 time slices.
RR Throughput, 4 p with q: 1, o: 1, is: 0.0229 p/ms, or 22.8571 p/us
Average RR TA, 4 p with q: 1, o: 1, is: 98.0000
preemptive RR schedule, quantum = 2 overhead = 0
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 52, needed: 17 ms, and: 9 time slices.
RR TA time for finished p4 = 58, needed: 20 ms, and: 10 time slices.
RR TA time for finished p2 = 88, needed: 50 ms, and: 25 time slices.
RR Throughput, 4 p with q: 2, o: 0, is: 0.0455 p/ms, or 45.4545 p/us
Average RR TA, 4 p with q: 2, o: 0, is: 49.7500
preemptive RR schedule, quantum = 2 overhead = 1
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 78, needed: 17 ms, and: 9 time slices.
RR TA time for finished p4 = 87, needed: 20 ms, and: 10 time slices.
RR TA time for finished p2 = 132, needed: 50 ms, and: 25 time slices.
RR Throughput, 4 p with q: 2, o: 1, is: 0.0303 p/ms, or 30.3030 p/us
Average RR TA, 4 p with q: 2, o: 1, is: 74.5000
preemptive RR schedule, quantum = 2 overhead = 2
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 104, needed: 17 ms, and: 9 time slices.
RR TA time for finished p4 = 116, needed: 20 ms, and: 10 time slices.
RR TA time for finished p2 = 176, needed: 50 ms, and: 25 time slices.
RR Throughput, 4 p with q: 2, o: 2, is: 0.0227 p/ms, or 22.7273 p/us
Average RR TA, 4 p with q: 2, o: 2, is: 99.2500
preemptive RR schedule, quantum = 3 overhead = 0
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 51, needed: 17 ms, and: 6 time slices.
RR TA time for finished p4 = 59, needed: 20 ms, and: 7 time slices.
RR TA time for finished p2 = 88, needed: 50 ms, and: 17 time slices.
RR Throughput, 4 p with q: 3, o: 0, is: 0.0455 p/ms, or 45.4545 p/us
Average RR TA, 4 p with q: 3, o: 0, is: 49.7500
preemptive RR schedule, quantum = 3 overhead = 1
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 68, needed: 17 ms, and: 6 time slices.
RR TA time for finished p4 = 79, needed: 20 ms, and: 7 time slices.
RR TA time for finished p2 = 118, needed: 50 ms, and: 17 time slices.
RR Throughput, 4 p with q: 3, o: 1, is: 0.0339 p/ms, or 33.8983 p/us
Average RR TA, 4 p with q: 3, o: 1, is: 66.5000
preemptive RR schedule, quantum = 3 overhead = 2
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 85, needed: 17 ms, and: 6 time slices.
RR TA time for finished p4 = 99, needed: 20 ms, and: 7 time slices.
RR TA time for finished p2 = 148, needed: 50 ms, and: 17 time slices.
RR Throughput, 4 p with q: 3, o: 2, is: 0.0270 p/ms, or 27.0270 p/us
Average RR TA, 4 p with q: 3, o: 2, is: 83.2500
preemptive RR schedule, quantum = 3 overhead = 3
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 102, needed: 17 ms, and: 6 time slices.
RR TA time for finished p4 = 119, needed: 20 ms, and: 7 time slices.
RR TA time for finished p2 = 178, needed: 50 ms, and: 17 time slices.
RR Throughput, 4 p with q: 3, o: 3, is: 0.0225 p/ms, or 22.4719 p/us
Average RR TA, 4 p with q: 3, o: 3, is: 100.0000
preemptive RR schedule, quantum = 4 overhead = 0
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 54, needed: 17 ms, and: 5 time slices.
RR TA time for finished p4 = 58, needed: 20 ms, and: 5 time slices.
RR TA time for finished p2 = 88, needed: 50 ms, and: 13 time slices.
RR Throughput, 4 p with q: 4, o: 0, is: 0.0455 p/ms, or 45.4545 p/us
Average RR TA, 4 p with q: 4, o: 0, is: 50.2500
preemptive RR schedule, quantum = 4 overhead = 1
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 68, needed: 17 ms, and: 5 time slices.
RR TA time for finished p4 = 73, needed: 20 ms, and: 5 time slices.
RR TA time for finished p2 = 111, needed: 50 ms, and: 13 time slices.
RR Throughput, 4 p with q: 4, o: 1, is: 0.0360 p/ms, or 36.0360 p/us
Average RR TA, 4 p with q: 4, o: 1, is: 63.2500
preemptive RR schedule, quantum = 4 overhead = 2
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 82, needed: 17 ms, and: 5 time slices.
RR TA time for finished p4 = 88, needed: 20 ms, and: 5 time slices.
RR TA time for finished p2 = 134, needed: 50 ms, and: 13 time slices.
RR Throughput, 4 p with q: 4, o: 2, is: 0.0299 p/ms, or 29.8507 p/us
Average RR TA, 4 p with q: 4, o: 2, is: 76.2500
preemptive RR schedule, quantum = 4 overhead = 3
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 96, needed: 17 ms, and: 5 time slices.
RR TA time for finished p4 = 103, needed: 20 ms, and: 5 time slices.
RR TA time for finished p2 = 157, needed: 50 ms, and: 13 time slices.
RR Throughput, 4 p with q: 4, o: 3, is: 0.0255 p/ms, or 25.4777 p/us
Average RR TA, 4 p with q: 4, o: 3, is: 89.2500
preemptive RR schedule, quantum = 4 overhead = 4
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 110, needed: 17 ms, and: 5 time slices.
RR TA time for finished p4 = 118, needed: 20 ms, and: 5 time slices.
RR TA time for finished p2 = 180, needed: 50 ms, and: 13 time slices.
RR Throughput, 4 p with q: 4, o: 4, is: 0.0222 p/ms, or 22.2222 p/us
Average RR TA, 4 p with q: 4, o: 4, is: 102.2500
preemptive RR schedule, quantum = 5 overhead = 0
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 53, needed: 17 ms, and: 4 time slices.
RR TA time for finished p4 = 58, needed: 20 ms, and: 4 time slices.
RR TA time for finished p2 = 88, needed: 50 ms, and: 10 time slices.
RR Throughput, 4 p with q: 5, o: 0, is: 0.0455 p/ms, or 45.4545 p/us
Average RR TA, 4 p with q: 5, o: 0, is: 50.0000
preemptive RR schedule, quantum = 5 overhead = 1
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 64, needed: 17 ms, and: 4 time slices.
RR TA time for finished p4 = 70, needed: 20 ms, and: 4 time slices.
RR TA time for finished p2 = 106, needed: 50 ms, and: 10 time slices.
RR Throughput, 4 p with q: 5, o: 1, is: 0.0377 p/ms, or 37.7358 p/us
Average RR TA, 4 p with q: 5, o: 1, is: 60.2500
preemptive RR schedule, quantum = 5 overhead = 2
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 75, needed: 17 ms, and: 4 time slices.
RR TA time for finished p4 = 82, needed: 20 ms, and: 4 time slices.
RR TA time for finished p2 = 124, needed: 50 ms, and: 10 time slices.
RR Throughput, 4 p with q: 5, o: 2, is: 0.0323 p/ms, or 32.2581 p/us
Average RR TA, 4 p with q: 5, o: 2, is: 70.5000
preemptive RR schedule, quantum = 5 overhead = 3
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 86, needed: 17 ms, and: 4 time slices.
RR TA time for finished p4 = 94, needed: 20 ms, and: 4 time slices.
RR TA time for finished p2 = 142, needed: 50 ms, and: 10 time slices.
RR Throughput, 4 p with q: 5, o: 3, is: 0.0282 p/ms, or 28.1690 p/us
Average RR TA, 4 p with q: 5, o: 3, is: 80.7500
preemptive RR schedule, quantum = 5 overhead = 4
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 97, needed: 17 ms, and: 4 time slices.
RR TA time for finished p4 = 106, needed: 20 ms, and: 4 time slices.
RR TA time for finished p2 = 160, needed: 50 ms, and: 10 time slices.
RR Throughput, 4 p with q: 5, o: 4, is: 0.0250 p/ms, or 25.0000 p/us
Average RR TA, 4 p with q: 5, o: 4, is: 91.0000
preemptive RR schedule, quantum = 5 overhead = 5
RR TA time for finished p1 = 1, needed: 1 ms, and: 1 time slices.
RR TA time for finished p3 = 108, needed: 17 ms, and: 4 time slices.
RR TA time for finished p4 = 118, needed: 20 ms, and: 4 time slices.
RR TA time for finished p2 = 178, needed: 50 ms, and: 10 time slices.
RR Throughput, 4 p with q: 5, o: 5, is: 0.0225 p/ms, or 22.4719 p/us
Average RR TA, 4 p with q: 5, o: 5, is: 101.2500
<><> end preemptive RR schedule <><>