/
fcfs_test.txt
18 lines (17 loc) · 917 Bytes
/
fcfs_test.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
----------------------------------------------
First-come, First-serve
----------------------------------------------
Gantt schedule
| 1 | 2 | 3 |
0 5 14 20
Schedule table
+----+----------+-------+---------+---------+------------+------------+
| ID | PRIORITY | BURST | ARRIVAL | WAIT | TURNAROUND | EXIT |
+----+----------+-------+---------+---------+------------+------------+
| 1 | 2 | 5 | 0 | 0 | 5 | 5 |
| 2 | 1 | 9 | 3 | 2 | 11 | 14 |
| 3 | 3 | 6 | 6 | 8 | 14 | 20 |
+----+----------+-------+---------+---------+------------+------------+
| AVERAGE | AVERAGE | THROUGHPUT |
| 3.33 | 10.00 | 0.15/T |
+----+----------+-------+---------+---------+------------+------------+