August 1997
SW204: SOFTWARE AND FILES DESIGN

QUESTION 3

Total Marks: 20 Marks

Click here to access other questions

Click to access
SUGGESTED SOLUTIONS
for Question 3

3. (a) List two types of scheduler, and distinguish between them. [4]
(b) Suppose, in a multiprogramming environment, a processor is assigned the following jobs for execution.
Job Arrival Time CPU Time Priority
1 0 7 4
2 1 5 3
3 2 6 1
4 3 2 2
Priority is highest for 1 and lowest for 4.
Draw a Gantt Chart to illustrate the execution of these jobs using the following scheduling algorithms: [8]
(i) First Come First Served
(ii) Shortest Job First
(iii) Round Robin (time quantum is 3)
(iv) Priority Scheduling
(c) For each of the algorithms mentioned in part (b), compute the average waiting time. You should show all necessary working. [8]