Hello World

This commit is contained in:
Zach S-B 2021-08-13 09:20:35 +10:00
parent a1d7b8ecb8
commit d4abcb6552
11 changed files with 272 additions and 0 deletions

5
Assignment1.java Normal file
View File

@ -0,0 +1,5 @@
public class Assignment1 {
public static void main(String[] args){
System.out.println("Hello World!");
}
}

Binary file not shown.

BIN
Spec/Assign1.pdf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

62
Spec/datafile1.txt Normal file
View File

@ -0,0 +1,62 @@
BEGIN
DISP: 1
END
ID: p1
Arrive: 0
ExecSize: 10
Tickets: 50
END
ID: p2
Arrive: 0
ExecSize: 1
Tickets: 100
END
ID: p3
Arrive: 0
ExecSize: 2
Tickets: 125
END
ID: p4
Arrive: 0
ExecSize: 1
Tickets: 200
END
ID: p5
Arrive: 0
ExecSize: 5
Tickets: 75
END
BEGINRANDOM
844422
757955
420572
258917
511275
404934
783799
303313
476597
583382
908113
504687
281838
755804
618369
250506
909747
982786
810218
902166
310147
729832
ENDRANDOM
EOF

71
Spec/datafile1_output.txt Normal file
View File

@ -0,0 +1,71 @@
FCFS:
T1: p1
T12: p2
T14: p3
T17: p4
T19: p5
Process Turnaround Time Waiting Time
p1 11 1
p2 13 12
p3 16 14
p4 18 17
p5 24 19
SRT:
T1: p2
T3: p4
T5: p3
T8: p5
T14: p1
Process Turnaround Time Waiting Time
p1 24 14
p2 2 1
p3 7 5
p4 4 3
p5 13 8
FBV:
T1: p1
T3: p2
T5: p3
T7: p4
T9: p5
T11: p1
T14: p3
T16: p5
T19: p1
T24: p5
T27: p1
Process Turnaround Time Waiting Time
p1 30 20
p2 4 3
p3 15 13
p4 8 7
p5 26 21
LTR:
T1: p3
T4: p4
T6: p1
T11: p5
T16: p2
T18: p5
T20: p1
T25: p1
Process Turnaround Time Waiting Time
p1 27 17
p2 17 16
p3 3 1
p4 5 4
p5 19 14
Summary
Algorithm Average Turnaround Time Waiting Time
FCFS 16.40 12.60
SRT 10.00 6.20
FBV 16.60 12.80
LTR 14.20 10.40

59
Spec/datafile2.txt Normal file
View File

@ -0,0 +1,59 @@
BEGIN
DISP: 1
END
ID: p1
Arrive: 0
ExecSize: 10
Tickets: 6
END
ID: p2
Arrive: 2
ExecSize: 1
Tickets: 1
END
ID: p3
Arrive: 6
ExecSize: 2
Tickets: 3
END
ID: p4
Arrive: 10
ExecSize: 1
Tickets: 7
END
ID: p5
Arrive: 14
ExecSize: 5
Tickets: 4
END
BEGINRANDOM
134364
847434
763775
255069
495435
449491
651593
788724
93859
28347
835765
432767
762280
2106
445387
721540
228762
945271
901428
ENDRANDOM
EOF

75
Spec/datafile2_output.txt Normal file
View File

@ -0,0 +1,75 @@
FCFS:
T1: p1
T12: p2
T14: p3
T17: p4
T19: p5
Process Turnaround Time Waiting Time
p1 11 1
p2 11 10
p3 10 8
p4 8 7
p5 10 5
SRT:
T1: p1
T3: p2
T5: p1
T7: p3
T10: p1
T12: p4
T14: p1
T16: p5
T22: p1
Process Turnaround Time Waiting Time
p1 28 18
p2 2 1
p3 3 1
p4 3 2
p5 7 2
FBV:
T1: p1
T3: p2
T5: p1
T8: p3
T10: p3
T12: p4
T14: p1
T19: p5
T21: p5
T24: p5
T27: p1
Process Turnaround Time Waiting Time
p1 30 20
p2 2 1
p3 5 3
p4 3 2
p5 12 7
LTR:
T1: p1
T6: p2
T8: p3
T11: p4
T13: p1
T18: p5
T23: p1
T26: p5
Process Turnaround Time Waiting Time
p1 25 15
p2 5 4
p3 4 2
p4 2 1
p5 13 8
Summary
Algorithm Average Turnaround Time Waiting Time
FCFS 10.00 6.20
SRT 8.60 4.80
FBV 10.40 6.60
LTR 9.80 6.00