END TERM EXAM OS L6
END TERM EXAM OS L6
SUMMATIVE ASSESSMENT
Qualifica
COMPUTER SCIENCE LEVEL 6
tion:
Qualification Code:
CANDIDATE INSTRUCTIONS
WRITTEN ASSESSMENT
Instructions:
b) With the aid of a diagram describe Batch operating system giving one advantage and one
disadvantage.
(4 marks)
c) Assume the following processes arrived in the order PI, P2, P3. With their respective
burst/run time Process P1 P2 P3
i. Burst time(m/sec) 12 7 15
Draw Gantt charts to represent the three processes using FIFO and SJF (2marks)
ii. Calculate the waiting time for each process using FIFO and SJF respectively (2marks)
2
iii. Calculate the average waiting time of the processes with FIFO and SJF respectively
(4marks)
iv Discuss the difference between FIFO algorithm and SJF with respect to the calculation
above (4marks)