OS Itbl 3 - 2024 - Sec01Answers
OS Itbl 3 - 2024 - Sec01Answers
Note: This is a group-based activity; but no inter-group communication is allowed. Each group is required to
answer the following questions in brief and to the point and submit one answer sheet to the instructor indicating
all names of the group. You can consult lecture slides, books, and online material.
Q1. (80 marks) Consider the following set of processes, with the length of CPU-burst time given in
milliseconds. The processes are assumed to have arrived in the order P1, P2, P3, P4, P5 all at time 0. Draw
Gantt chart. and calculate the individual and average waiting time, turnaround time and response time of each
process, assuming the Round Robin scheduling algorithm is used with time quantum 6.
P1 P2 P3 P4 P5 P1 P2 P5
0 6 12 15 20 20 26 26 30 30 31
6 12 15 31 33
Page 1 of 2
Q2. (20 marks) Consider the following multilevel feedback queue, where there are three queues Q0 (RR with
q=8ms), Q1 (RR with q=16ms), and Q2 (FCFS). Answer the questions.
1. New processes always enter the queue …Q0……. . (Pick one from the list {Q0, Q1, Q2})
2. A process currently in Q0 with the CPU burst length=9 ms enters to the Q1 in the next round. True/False?
3. The processes in Q2 are more interactive than the processes in Q1. True/False?
4. Q2 is a part of the ‘ready queue’ in the system. True/False?
5. Suppose the short-term scheduler always selects from Q0 when not empty, and always selects from Q1 when Q0 is
empty but Q1 is not, and selects from Q2 when both Q0 and Q1 are empty but Q2 is not. Then, there is no risk of
starvation with this CPU scheduling. True/False?
Page 2 of 2