Hey, guys
I have a task:
Job | Running time | Priority |
A | 10 | 3 |
B | 6 | 5 |
C | 2 | 2 |
D | 4 | 1 |
E | 8 | 4 |
All 5 jobs have the same arrival time.
The question is, what is the average waiting time according to Round Robin algorithm. Quantum = 1 min.
The answer that was given by a teacher:
(B+E+A+C+D)+(B+E+A+C)+ (B+E+A)+ (B+E+A)+ (B+E+A)+ (B+E+A)+ (E+A)+ (E+A)+ (A+A)/5 = 5.4
According to all information that I have read, waiting time for this question is 15.2. Where from the number 5.4 came from? Is this the real answer?
This is a question from my exam and its really bugging me.
Sorry for possible dumb question. I was reading questions in homework help section and was really embarrassing to ask this simple thing there.
Thanks