Table 1
| Process Name |
Arrival Time |
Processing Time |
| A |
0 |
3 |
| B |
1 |
5 |
| C |
3 |
2 |
| D |
9 |
5 |
| E |
12 |
5 |
Perform the same analysis as depicted for this
set.
0 5 10 15
20
| | | | | | | | | | | | | | | | | | | |
|
FCFS P1 ------
P2 ----------
P3 ----
P4 ----------
P5 ----------
RR q=1 P1 -- -- --
P2 -- -- -- -- --
P3 -- --
P4 -- -- -- -- --
P5 -- -- -- ----
RR q=4 P1 ------
P2 -------- --
P3 ----
P4 -------- --
P5 -------- --
SPN P1 ------
P2 ----------
P3 ----
P4 ----------
P5 ----------
SRT P1 ------
P2 ----------
P3 ----
P4 ----------
P5 ----------
HRRN P1 ------
P2 ----------
P3 ----
P4 ----------
P5 ----------
FB q=1 P1 -- -- --
P2 -- -- ---- --
P3 -- --
P4 -- -- -- -- --
P5 -- -- -- ----
FB q=2^i P1 -- ----
P2 -- ---- ----
P3 -- --
P4 ------ ----
P5 -- --------
For feedback queueing with a quantum of 1, I assume
that when a process is taken off the processor and placed in a lower priority
queue, it is not eligible to go right back onto the processor. It must wait
another quantum. For feedback queueing with a quantum of 2i, I assume that a
newly arriving process can't preempt the current process until it is done with
its quantum. This is different from the book's assumption and therefore
different from Figure 9.5 in the book.
Here are the metrics:
1 2 3 4 5
Ta 0 1 3 9 12
Ts 3 5 2 5 5
================================================
FCFS Tf 3 8 10 15 20
Tq 3 7 7 6 8
6.20
Tq/Ts 1.00 1.40 3.50 1.20 1.60 1.74
================================================
RR q=1 Tf 6 11 8 18 20
Tq 6 10 5 9 8
7.60
Tq/Ts 2.00 2.00 2.50 1.80 1.60 1.98
================================================
RR q=4 Tf 3 10 9 19 20
Tq 3 9 6 10 8
7.20
Tq/Ts 1.00 1.80 3.00 2.00 1.60 1.88
================================================
SPN Tf 3 10 5 15 20
Tq 3 9 2 6 8
5.60
Tq/Ts 1.00 1.80 1.00 1.20 1.60 1.32
================================================
SRT Tf 3 10 5 15 20
Tq 3 9 2 6 8
5.60
Tq/Ts 1.00 1.80 1.00 1.20 1.60 1.32
================================================
HRRN Tf 3 10 5 15 20
Tq 3 7 7 6 8
6.20
Tq/Ts 1.00 1.40 3.50 1.20 1.60 1.74
================================================
FB q=1 Tf 7 11 6 18 20
Tq 7 10 3 9 8
7.40
Tq/Ts 2.33 2.00 1.50 1.80 1.60 1.85
================================================
FB q=1 Tf 4 10 8 16 20
Tq 4 9 5 7 8
7.00
Tq/Ts 1.33 1.80 2.50 1.40 1.60 1.81
================================================
Assume the following burst-time pattern for a
process: 6,4,6,4,13,13,13, and assume that the initial guess is 10.