-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.txt
940 lines (898 loc) · 24.8 KB
/
output.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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
Num of Processes: 5
Running Priority Scheduling:
Executing the task P5 with priority 1 for 9 seconds
Task with priority 1 completed.
Executing the task P1 with priority 3 for 4 seconds
Task with priority 3 completed.
Executing the task P4 with priority 8 for 12 seconds
Task with priority 8 completed.
Executing the task P2 with priority 9 for 15 seconds
Task with priority 9 completed.
Executing the task P3 with priority 9 for 9 seconds
Task with priority 9 completed.
Results for Priority Scheduling:
Process P5:
Turnaround Time: 9 ms
Waiting Time: 0 ms
Response Time: 0 ms
Process P1:
Turnaround Time: 13 ms
Waiting Time: 9 ms
Response Time: 0 ms
Process P4:
Turnaround Time: 25 ms
Waiting Time: 13 ms
Response Time: 0 ms
Process P2:
Turnaround Time: 40 ms
Waiting Time: 25 ms
Response Time: 0 ms
Process P3:
Turnaround Time: 49 ms
Waiting Time: 40 ms
Response Time: 0 ms
Running Earliest Deadline First Scheduling:
Executing the task P1 with deadline 3 for 4 seconds
Task with deadline 3 completed.
Executing the task P3 with deadline 7 for 9 seconds
Task with deadline 7 completed.
Executing the task P4 with deadline 14 for 12 seconds
Task with deadline 14 completed.
Executing the task P5 with deadline 17 for 9 seconds
Task with deadline 17 completed.
Executing the task P2 with deadline 19 for 15 seconds
Task with deadline 19 completed.
Results for Earliest Deadline First Scheduling:
Process P1:
Turnaround Time: 4 ms
Waiting Time: 0 ms
Response Time: 0 ms
Process P3:
Turnaround Time: 13 ms
Waiting Time: 4 ms
Response Time: 4 ms
Process P4:
Turnaround Time: 25 ms
Waiting Time: 13 ms
Response Time: 13 ms
Process P5:
Turnaround Time: 34 ms
Waiting Time: 25 ms
Response Time: 25 ms
Process P2:
Turnaround Time: 49 ms
Waiting Time: 34 ms
Response Time: 34 ms
Running Rate Monotonic Scheduling:
Executing the task P3 with period 2 for 9 seconds
Task with period 2 completed.
Executing the task P2 with period 3 for 15 seconds
Task with period 3 completed.
Executing the task P5 with period 4 for 9 seconds
Task with period 4 completed.
Executing the task P1 with period 6 for 4 seconds
Task with period 6 completed.
Executing the task P4 with period 10 for 12 seconds
Task with period 10 completed.
Results for Rate Monotonic Scheduling:
Process P3:
Turnaround Time: 9 ms
Waiting Time: 0 ms
Response Time: 0 ms
Process P2:
Turnaround Time: 24 ms
Waiting Time: 9 ms
Response Time: 9 ms
Process P5:
Turnaround Time: 33 ms
Waiting Time: 24 ms
Response Time: 24 ms
Process P1:
Turnaround Time: 37 ms
Waiting Time: 33 ms
Response Time: 33 ms
Process P4:
Turnaround Time: 49 ms
Waiting Time: 37 ms
Response Time: 37 ms
Running Proportional Share Scheduling:
Executing the task P1 with 322 shares for 4 seconds
Executing the task P2 with 176 shares for 15 seconds
Executing the task P3 with 220 shares for 9 seconds
Executing the task P4 with 149 shares for 12 seconds
Executing the task P5 with 131 shares for 9 seconds
Results for Proportional Share Scheduling:
Process P1:
Turnaround Time: 4 ms
Waiting Time: 0 ms
Response Time: 0 ms
Process P2:
Turnaround Time: 16 ms
Waiting Time: 1 ms
Response Time: 0 ms
Process P3:
Turnaround Time: 12 ms
Waiting Time: 3 ms
Response Time: 0 ms
Process P4:
Turnaround Time: 16 ms
Waiting Time: 4 ms
Response Time: 0 ms
Process P5:
Turnaround Time: 14 ms
Waiting Time: 5 ms
Response Time: 0 ms
Metrics Comparison:
Priority Scheduling:
Average Turnaround Time: 27.20 ms
Average Waiting Time: 17.40 ms
Average Response Time: 0.00 ms
Earliest Deadline First Scheduling:
Average Turnaround Time: 25.00 ms
Average Waiting Time: 15.20 ms
Average Response Time: 15.20 ms
Rate Monotonic Scheduling:
Average Turnaround Time: 30.40 ms
Average Waiting Time: 20.60 ms
Average Response Time: 20.60 ms
Proportional Share Scheduling:
Average Turnaround Time: 12.40 ms
Average Waiting Time: 2.60 ms
Average Response Time: 0.00 ms
Conclusion : With Number of Process = 5
By comparing the Average TurnAround Time
Proportional Share Scheduling is the best.
By comparing the Average Waiting Time
Proportional Share Scheduling is the best.
Num of Processes: 10
Running Priority Scheduling:
Executing the task P4 with priority 1 for 14 seconds
Task with priority 1 completed.
Executing the task P5 with priority 1 for 16 seconds
Task with priority 1 completed.
Executing the task P2 with priority 3 for 9 seconds
Task with priority 3 completed.
Executing the task P1 with priority 6 for 16 seconds
Task with priority 6 completed.
Executing the task P7 with priority 6 for 14 seconds
Task with priority 6 completed.
Executing the task P9 with priority 6 for 11 seconds
Task with priority 6 completed.
Executing the task P6 with priority 7 for 6 seconds
Task with priority 7 completed.
Executing the task P10 with priority 7 for 13 seconds
Task with priority 7 completed.
Executing the task P3 with priority 8 for 1 seconds
Task with priority 8 completed.
Executing the task P8 with priority 8 for 8 seconds
Task with priority 8 completed.
Results for Priority Scheduling:
Process P4:
Turnaround Time: 14 ms
Waiting Time: 0 ms
Response Time: 0 ms
Process P5:
Turnaround Time: 30 ms
Waiting Time: 14 ms
Response Time: 0 ms
Process P2:
Turnaround Time: 39 ms
Waiting Time: 30 ms
Response Time: 0 ms
Process P1:
Turnaround Time: 55 ms
Waiting Time: 39 ms
Response Time: 0 ms
Process P7:
Turnaround Time: 69 ms
Waiting Time: 55 ms
Response Time: 0 ms
Process P9:
Turnaround Time: 80 ms
Waiting Time: 69 ms
Response Time: 0 ms
Process P6:
Turnaround Time: 86 ms
Waiting Time: 80 ms
Response Time: 0 ms
Process P10:
Turnaround Time: 99 ms
Waiting Time: 86 ms
Response Time: 0 ms
Process P3:
Turnaround Time: 100 ms
Waiting Time: 99 ms
Response Time: 0 ms
Process P8:
Turnaround Time: 108 ms
Waiting Time: 100 ms
Response Time: 0 ms
Running Earliest Deadline First Scheduling:
Executing the task P4 with deadline 1 for 14 seconds
Task with deadline 1 completed.
Executing the task P2 with deadline 5 for 9 seconds
Task with deadline 5 completed.
Executing the task P9 with deadline 5 for 11 seconds
Task with deadline 5 completed.
Executing the task P7 with deadline 8 for 14 seconds
Task with deadline 8 completed.
Executing the task P3 with deadline 10 for 1 seconds
Task with deadline 10 completed.
Executing the task P5 with deadline 15 for 16 seconds
Task with deadline 15 completed.
Executing the task P1 with deadline 16 for 16 seconds
Task with deadline 16 completed.
Executing the task P6 with deadline 24 for 6 seconds
Task with deadline 24 completed.
Executing the task P10 with deadline 27 for 13 seconds
Task with deadline 27 completed.
Executing the task P8 with deadline 27 for 8 seconds
Task with deadline 27 completed.
Results for Earliest Deadline First Scheduling:
Process P4:
Turnaround Time: 14 ms
Waiting Time: 0 ms
Response Time: 0 ms
Process P2:
Turnaround Time: 23 ms
Waiting Time: 14 ms
Response Time: 14 ms
Process P9:
Turnaround Time: 34 ms
Waiting Time: 23 ms
Response Time: 23 ms
Process P7:
Turnaround Time: 48 ms
Waiting Time: 34 ms
Response Time: 34 ms
Process P3:
Turnaround Time: 49 ms
Waiting Time: 48 ms
Response Time: 48 ms
Process P5:
Turnaround Time: 65 ms
Waiting Time: 49 ms
Response Time: 49 ms
Process P1:
Turnaround Time: 81 ms
Waiting Time: 65 ms
Response Time: 65 ms
Process P6:
Turnaround Time: 87 ms
Waiting Time: 81 ms
Response Time: 81 ms
Process P10:
Turnaround Time: 100 ms
Waiting Time: 87 ms
Response Time: 87 ms
Process P8:
Turnaround Time: 108 ms
Waiting Time: 100 ms
Response Time: 100 ms
Running Rate Monotonic Scheduling:
Executing the task P5 with period 2 for 16 seconds
Task with period 2 completed.
Executing the task P10 with period 2 for 13 seconds
Task with period 2 completed.
Executing the task P1 with period 3 for 16 seconds
Task with period 3 completed.
Executing the task P2 with period 3 for 9 seconds
Task with period 3 completed.
Executing the task P8 with period 5 for 8 seconds
Task with period 5 completed.
Executing the task P3 with period 6 for 1 seconds
Task with period 6 completed.
Executing the task P7 with period 6 for 14 seconds
Task with period 6 completed.
Executing the task P4 with period 7 for 14 seconds
Task with period 7 completed.
Executing the task P6 with period 10 for 6 seconds
Task with period 10 completed.
Executing the task P9 with period 10 for 11 seconds
Task with period 10 completed.
Results for Rate Monotonic Scheduling:
Process P5:
Turnaround Time: 16 ms
Waiting Time: 0 ms
Response Time: 0 ms
Process P10:
Turnaround Time: 29 ms
Waiting Time: 16 ms
Response Time: 16 ms
Process P1:
Turnaround Time: 45 ms
Waiting Time: 29 ms
Response Time: 29 ms
Process P2:
Turnaround Time: 54 ms
Waiting Time: 45 ms
Response Time: 45 ms
Process P8:
Turnaround Time: 62 ms
Waiting Time: 54 ms
Response Time: 54 ms
Process P3:
Turnaround Time: 63 ms
Waiting Time: 62 ms
Response Time: 62 ms
Process P7:
Turnaround Time: 77 ms
Waiting Time: 63 ms
Response Time: 63 ms
Process P4:
Turnaround Time: 91 ms
Waiting Time: 77 ms
Response Time: 77 ms
Process P6:
Turnaround Time: 97 ms
Waiting Time: 91 ms
Response Time: 91 ms
Process P9:
Turnaround Time: 108 ms
Waiting Time: 97 ms
Response Time: 97 ms
Running Proportional Share Scheduling:
Executing the task P1 with 113 shares for 16 seconds
Executing the task P2 with 163 shares for 9 seconds
Executing the task P3 with 52 shares for 1 seconds
Executing the task P4 with 89 shares for 14 seconds
Executing the task P5 with 97 shares for 16 seconds
Executing the task P6 with 128 shares for 6 seconds
Executing the task P7 with 99 shares for 14 seconds
Executing the task P8 with 107 shares for 8 seconds
Executing the task P9 with 123 shares for 11 seconds
Executing the task P10 with 24 shares for 13 seconds
Results for Proportional Share Scheduling:
Process P1:
Turnaround Time: 16 ms
Waiting Time: 0 ms
Response Time: 0 ms
Process P2:
Turnaround Time: 10 ms
Waiting Time: 1 ms
Response Time: 0 ms
Process P3:
Turnaround Time: 3 ms
Waiting Time: 2 ms
Response Time: 0 ms
Process P4:
Turnaround Time: 16 ms
Waiting Time: 2 ms
Response Time: 0 ms
Process P5:
Turnaround Time: 19 ms
Waiting Time: 3 ms
Response Time: 0 ms
Process P6:
Turnaround Time: 10 ms
Waiting Time: 4 ms
Response Time: 0 ms
Process P7:
Turnaround Time: 18 ms
Waiting Time: 4 ms
Response Time: 0 ms
Process P8:
Turnaround Time: 13 ms
Waiting Time: 5 ms
Response Time: 0 ms
Process P9:
Turnaround Time: 16 ms
Waiting Time: 5 ms
Response Time: 0 ms
Process P10:
Turnaround Time: 19 ms
Waiting Time: 6 ms
Response Time: 0 ms
Metrics Comparison:
Priority Scheduling:
Average Turnaround Time: 68.00 ms
Average Waiting Time: 57.20 ms
Average Response Time: 0.00 ms
Earliest Deadline First Scheduling:
Average Turnaround Time: 60.90 ms
Average Waiting Time: 50.10 ms
Average Response Time: 50.10 ms
Rate Monotonic Scheduling:
Average Turnaround Time: 64.20 ms
Average Waiting Time: 53.40 ms
Average Response Time: 53.40 ms
Proportional Share Scheduling:
Average Turnaround Time: 14.00 ms
Average Waiting Time: 3.20 ms
Average Response Time: 0.00 ms
Conclusion : With Number of Process = 10
By comparing the Average TurnAround Time
Proportional Share Scheduling is the best.
By comparing the Average Waiting Time
Proportional Share Scheduling is the best.
Num of Processes: 20
Running Priority Scheduling:
Executing the task P11 with priority 0 for 14 seconds
Task with priority 0 completed.
Executing the task P5 with priority 1 for 19 seconds
Task with priority 1 completed.
Executing the task P1 with priority 2 for 15 seconds
Task with priority 2 completed.
Executing the task P7 with priority 2 for 14 seconds
Task with priority 2 completed.
Executing the task P8 with priority 2 for 14 seconds
Task with priority 2 completed.
Executing the task P6 with priority 3 for 7 seconds
Task with priority 3 completed.
Executing the task P13 with priority 3 for 8 seconds
Task with priority 3 completed.
Executing the task P3 with priority 5 for 8 seconds
Task with priority 5 completed.
Executing the task P20 with priority 5 for 13 seconds
Task with priority 5 completed.
Executing the task P9 with priority 6 for 14 seconds
Task with priority 6 completed.
Executing the task P10 with priority 6 for 18 seconds
Task with priority 6 completed.
Executing the task P16 with priority 6 for 1 seconds
Task with priority 6 completed.
Executing the task P15 with priority 7 for 12 seconds
Task with priority 7 completed.
Executing the task P17 with priority 7 for 18 seconds
Task with priority 7 completed.
Executing the task P2 with priority 8 for 3 seconds
Task with priority 8 completed.
Executing the task P4 with priority 8 for 11 seconds
Task with priority 8 completed.
Executing the task P14 with priority 8 for 3 seconds
Task with priority 8 completed.
Executing the task P19 with priority 8 for 14 seconds
Task with priority 8 completed.
Executing the task P12 with priority 9 for 11 seconds
Task with priority 9 completed.
Executing the task P18 with priority 9 for 8 seconds
Task with priority 9 completed.
Results for Priority Scheduling:
Process P11:
Turnaround Time: 14 ms
Waiting Time: 0 ms
Response Time: 0 ms
Process P5:
Turnaround Time: 33 ms
Waiting Time: 14 ms
Response Time: 0 ms
Process P1:
Turnaround Time: 48 ms
Waiting Time: 33 ms
Response Time: 0 ms
Process P7:
Turnaround Time: 62 ms
Waiting Time: 48 ms
Response Time: 0 ms
Process P8:
Turnaround Time: 76 ms
Waiting Time: 62 ms
Response Time: 0 ms
Process P6:
Turnaround Time: 83 ms
Waiting Time: 76 ms
Response Time: 0 ms
Process P13:
Turnaround Time: 91 ms
Waiting Time: 83 ms
Response Time: 0 ms
Process P3:
Turnaround Time: 99 ms
Waiting Time: 91 ms
Response Time: 0 ms
Process P20:
Turnaround Time: 112 ms
Waiting Time: 99 ms
Response Time: 0 ms
Process P9:
Turnaround Time: 126 ms
Waiting Time: 112 ms
Response Time: 0 ms
Process P10:
Turnaround Time: 144 ms
Waiting Time: 126 ms
Response Time: 0 ms
Process P16:
Turnaround Time: 145 ms
Waiting Time: 144 ms
Response Time: 0 ms
Process P15:
Turnaround Time: 157 ms
Waiting Time: 145 ms
Response Time: 0 ms
Process P17:
Turnaround Time: 175 ms
Waiting Time: 157 ms
Response Time: 0 ms
Process P2:
Turnaround Time: 178 ms
Waiting Time: 175 ms
Response Time: 0 ms
Process P4:
Turnaround Time: 189 ms
Waiting Time: 178 ms
Response Time: 0 ms
Process P14:
Turnaround Time: 192 ms
Waiting Time: 189 ms
Response Time: 0 ms
Process P19:
Turnaround Time: 206 ms
Waiting Time: 192 ms
Response Time: 0 ms
Process P12:
Turnaround Time: 217 ms
Waiting Time: 206 ms
Response Time: 0 ms
Process P18:
Turnaround Time: 225 ms
Waiting Time: 217 ms
Response Time: 0 ms
Running Earliest Deadline First Scheduling:
Executing the task P3 with deadline 1 for 8 seconds
Task with deadline 1 completed.
Executing the task P4 with deadline 1 for 11 seconds
Task with deadline 1 completed.
Executing the task P5 with deadline 3 for 19 seconds
Task with deadline 3 completed.
Executing the task P14 with deadline 5 for 3 seconds
Task with deadline 5 completed.
Executing the task P18 with deadline 5 for 8 seconds
Task with deadline 5 completed.
Executing the task P11 with deadline 10 for 14 seconds
Task with deadline 10 completed.
Executing the task P15 with deadline 11 for 12 seconds
Task with deadline 11 completed.
Executing the task P13 with deadline 12 for 8 seconds
Task with deadline 12 completed.
Executing the task P7 with deadline 13 for 14 seconds
Task with deadline 13 completed.
Executing the task P19 with deadline 13 for 14 seconds
Task with deadline 13 completed.
Executing the task P20 with deadline 14 for 13 seconds
Task with deadline 14 completed.
Executing the task P2 with deadline 14 for 3 seconds
Task with deadline 14 completed.
Executing the task P1 with deadline 17 for 15 seconds
Task with deadline 17 completed.
Executing the task P16 with deadline 21 for 1 seconds
Task with deadline 21 completed.
Executing the task P8 with deadline 22 for 14 seconds
Task with deadline 22 completed.
Executing the task P17 with deadline 23 for 18 seconds
Task with deadline 23 completed.
Executing the task P12 with deadline 23 for 11 seconds
Task with deadline 23 completed.
Executing the task P9 with deadline 29 for 14 seconds
Task with deadline 29 completed.
Executing the task P10 with deadline 29 for 18 seconds
Task with deadline 29 completed.
Executing the task P6 with deadline 30 for 7 seconds
Task with deadline 30 completed.
Results for Earliest Deadline First Scheduling:
Process P3:
Turnaround Time: 8 ms
Waiting Time: 0 ms
Response Time: 0 ms
Process P4:
Turnaround Time: 19 ms
Waiting Time: 8 ms
Response Time: 8 ms
Process P5:
Turnaround Time: 38 ms
Waiting Time: 19 ms
Response Time: 19 ms
Process P14:
Turnaround Time: 41 ms
Waiting Time: 38 ms
Response Time: 38 ms
Process P18:
Turnaround Time: 49 ms
Waiting Time: 41 ms
Response Time: 41 ms
Process P11:
Turnaround Time: 63 ms
Waiting Time: 49 ms
Response Time: 49 ms
Process P15:
Turnaround Time: 75 ms
Waiting Time: 63 ms
Response Time: 63 ms
Process P13:
Turnaround Time: 83 ms
Waiting Time: 75 ms
Response Time: 75 ms
Process P7:
Turnaround Time: 97 ms
Waiting Time: 83 ms
Response Time: 83 ms
Process P19:
Turnaround Time: 111 ms
Waiting Time: 97 ms
Response Time: 97 ms
Process P20:
Turnaround Time: 124 ms
Waiting Time: 111 ms
Response Time: 111 ms
Process P2:
Turnaround Time: 127 ms
Waiting Time: 124 ms
Response Time: 124 ms
Process P1:
Turnaround Time: 142 ms
Waiting Time: 127 ms
Response Time: 127 ms
Process P16:
Turnaround Time: 143 ms
Waiting Time: 142 ms
Response Time: 142 ms
Process P8:
Turnaround Time: 157 ms
Waiting Time: 143 ms
Response Time: 143 ms
Process P17:
Turnaround Time: 175 ms
Waiting Time: 157 ms
Response Time: 157 ms
Process P12:
Turnaround Time: 186 ms
Waiting Time: 175 ms
Response Time: 175 ms
Process P9:
Turnaround Time: 200 ms
Waiting Time: 186 ms
Response Time: 186 ms
Process P10:
Turnaround Time: 218 ms
Waiting Time: 200 ms
Response Time: 200 ms
Process P6:
Turnaround Time: 225 ms
Waiting Time: 218 ms
Response Time: 218 ms
Running Rate Monotonic Scheduling:
Executing the task P14 with period 1 for 3 seconds
Task with period 1 completed.
Executing the task P19 with period 1 for 14 seconds
Task with period 1 completed.
Executing the task P5 with period 2 for 19 seconds
Task with period 2 completed.
Executing the task P16 with period 3 for 1 seconds
Task with period 3 completed.
Executing the task P3 with period 4 for 8 seconds
Task with period 4 completed.
Executing the task P4 with period 4 for 11 seconds
Task with period 4 completed.
Executing the task P20 with period 4 for 13 seconds
Task with period 4 completed.
Executing the task P1 with period 5 for 15 seconds
Task with period 5 completed.
Executing the task P15 with period 5 for 12 seconds
Task with period 5 completed.
Executing the task P17 with period 5 for 18 seconds
Task with period 5 completed.
Executing the task P8 with period 6 for 14 seconds
Task with period 6 completed.
Executing the task P12 with period 6 for 11 seconds
Task with period 6 completed.
Executing the task P13 with period 6 for 8 seconds
Task with period 6 completed.
Executing the task P18 with period 7 for 8 seconds
Task with period 7 completed.
Executing the task P6 with period 8 for 7 seconds
Task with period 8 completed.
Executing the task P10 with period 8 for 18 seconds
Task with period 8 completed.
Executing the task P2 with period 9 for 3 seconds
Task with period 9 completed.
Executing the task P9 with period 9 for 14 seconds
Task with period 9 completed.
Executing the task P7 with period 10 for 14 seconds
Task with period 10 completed.
Executing the task P11 with period 10 for 14 seconds
Task with period 10 completed.
Results for Rate Monotonic Scheduling:
Process P14:
Turnaround Time: 3 ms
Waiting Time: 0 ms
Response Time: 0 ms
Process P19:
Turnaround Time: 17 ms
Waiting Time: 3 ms
Response Time: 3 ms
Process P5:
Turnaround Time: 36 ms
Waiting Time: 17 ms
Response Time: 17 ms
Process P16:
Turnaround Time: 37 ms
Waiting Time: 36 ms
Response Time: 36 ms
Process P3:
Turnaround Time: 45 ms
Waiting Time: 37 ms
Response Time: 37 ms
Process P4:
Turnaround Time: 56 ms
Waiting Time: 45 ms
Response Time: 45 ms
Process P20:
Turnaround Time: 69 ms
Waiting Time: 56 ms
Response Time: 56 ms
Process P1:
Turnaround Time: 84 ms
Waiting Time: 69 ms
Response Time: 69 ms
Process P15:
Turnaround Time: 96 ms
Waiting Time: 84 ms
Response Time: 84 ms
Process P17:
Turnaround Time: 114 ms
Waiting Time: 96 ms
Response Time: 96 ms
Process P8:
Turnaround Time: 128 ms
Waiting Time: 114 ms
Response Time: 114 ms
Process P12:
Turnaround Time: 139 ms
Waiting Time: 128 ms
Response Time: 128 ms
Process P13:
Turnaround Time: 147 ms
Waiting Time: 139 ms
Response Time: 139 ms
Process P18:
Turnaround Time: 155 ms
Waiting Time: 147 ms
Response Time: 147 ms
Process P6:
Turnaround Time: 162 ms
Waiting Time: 155 ms
Response Time: 155 ms
Process P10:
Turnaround Time: 180 ms
Waiting Time: 162 ms
Response Time: 162 ms
Process P2:
Turnaround Time: 183 ms
Waiting Time: 180 ms
Response Time: 180 ms
Process P9:
Turnaround Time: 197 ms
Waiting Time: 183 ms
Response Time: 183 ms
Process P7:
Turnaround Time: 211 ms
Waiting Time: 197 ms
Response Time: 197 ms
Process P11:
Turnaround Time: 225 ms
Waiting Time: 211 ms
Response Time: 211 ms
Running Proportional Share Scheduling:
Executing the task P1 with 20 shares for 15 seconds
Executing the task P2 with 44 shares for 3 seconds
Executing the task P3 with 53 shares for 8 seconds
Executing the task P4 with 65 shares for 11 seconds
Executing the task P5 with 60 shares for 19 seconds
Executing the task P6 with 21 shares for 7 seconds
Executing the task P7 with 28 shares for 14 seconds
Executing the task P8 with 63 shares for 14 seconds
Executing the task P9 with 46 shares for 14 seconds
Executing the task P10 with 53 shares for 18 seconds
Executing the task P11 with 23 shares for 14 seconds
Executing the task P12 with 47 shares for 11 seconds
Executing the task P13 with 66 shares for 8 seconds
Executing the task P14 with 45 shares for 3 seconds
Executing the task P15 with 73 shares for 12 seconds
Executing the task P16 with 78 shares for 1 seconds
Executing the task P17 with 64 shares for 18 seconds
Executing the task P18 with 78 shares for 8 seconds
Executing the task P19 with 62 shares for 14 seconds
Executing the task P20 with 1 shares for 13 seconds
Results for Proportional Share Scheduling:
Process P1:
Turnaround Time: 15 ms
Waiting Time: 0 ms
Response Time: 0 ms
Process P2:
Turnaround Time: 3 ms
Waiting Time: 0 ms
Response Time: 0 ms
Process P3:
Turnaround Time: 8 ms
Waiting Time: 0 ms
Response Time: 0 ms
Process P4:
Turnaround Time: 11 ms
Waiting Time: 0 ms
Response Time: 0 ms
Process P5:
Turnaround Time: 19 ms
Waiting Time: 0 ms
Response Time: 0 ms
Process P6:
Turnaround Time: 8 ms
Waiting Time: 1 ms
Response Time: 0 ms
Process P7:
Turnaround Time: 15 ms
Waiting Time: 1 ms
Response Time: 0 ms
Process P8:
Turnaround Time: 15 ms
Waiting Time: 1 ms
Response Time: 0 ms
Process P9:
Turnaround Time: 15 ms
Waiting Time: 1 ms
Response Time: 0 ms
Process P10:
Turnaround Time: 19 ms
Waiting Time: 1 ms
Response Time: 0 ms
Process P11:
Turnaround Time: 15 ms
Waiting Time: 1 ms
Response Time: 0 ms
Process P12:
Turnaround Time: 12 ms
Waiting Time: 1 ms
Response Time: 0 ms
Process P13:
Turnaround Time: 9 ms
Waiting Time: 1 ms
Response Time: 0 ms
Process P14:
Turnaround Time: 4 ms
Waiting Time: 1 ms
Response Time: 0 ms
Process P15:
Turnaround Time: 13 ms
Waiting Time: 1 ms
Response Time: 0 ms
Process P16:
Turnaround Time: 2 ms
Waiting Time: 1 ms
Response Time: 0 ms
Process P17:
Turnaround Time: 19 ms
Waiting Time: 1 ms
Response Time: 0 ms
Process P18:
Turnaround Time: 10 ms
Waiting Time: 2 ms
Response Time: 0 ms
Process P19:
Turnaround Time: 16 ms
Waiting Time: 2 ms
Response Time: 0 ms
Process P20:
Turnaround Time: 15 ms
Waiting Time: 2 ms
Response Time: 0 ms
Metrics Comparison:
Priority Scheduling:
Average Turnaround Time: 128.60 ms
Average Waiting Time: 117.35 ms
Average Response Time: 0.00 ms
Earliest Deadline First Scheduling:
Average Turnaround Time: 114.05 ms
Average Waiting Time: 102.80 ms
Average Response Time: 102.80 ms
Rate Monotonic Scheduling:
Average Turnaround Time: 114.20 ms
Average Waiting Time: 102.95 ms
Average Response Time: 102.95 ms
Proportional Share Scheduling:
Average Turnaround Time: 12.15 ms
Average Waiting Time: 0.90 ms
Average Response Time: 0.00 ms
Conclusion : With Number of Process = 20
By comparing the Average TurnAround Time
Proportional Share Scheduling is the best.
By comparing the Average Waiting Time
Proportional Share Scheduling is the best.