Revision Questions
Revision Questions
Consider the following set of processes (lowest value is the higher priority), with the length of the CPU-burst time
given in milliseconds:
1. Draw the Gantt charts illustrating the execution of these processes using Preemptive Priority and Round
Robin (quantum=2) scheduling.
2. Based on your answer above, calculate the average waiting time for both scheduling.
Question 2
Consider the following set of processes (highest value is the higher priority), with the length of the CPU-burst
time given in milliseconds:
1. Draw the Gantt charts illustrating the execution of these processes using Preemptive Shortest Job First and
Round Robin (quantum=2) scheduling.
2. Based on your answer above, calculate the average waiting time for both scheduling.
Question 3
Question 5
Given the following fixed memory blocks and process sizes, allocate memory using first fit, best fit, and worst
fit strategies.
H U U H H U H U U H H
0K 45K 75K 110K 165K 200K 280K 350K 405K 415K 490K 600K
* U – Used | H - Hole
Show how the memory request above is allocated using each of the allocation schemes below (one process per
element):
Given the following dynamic memory blocks and process sizes, allocate memory using first fit, best fit, and
worst fit strategies.
H U U H H U H U U H H
0K 45K 75K 110K 165K 200K 280K 350K 405K 415K 490K 600K
* U – Used | H - Hole
Show how the memory request above is allocated using each of the allocation schemes below (one process per
element):
Question 7
Assume the availability of FOUR (4) frames and all the frames are initially empty. How many page faults would
occur for the following page replacement algorithms. Identify the final pages in the frames.
Question 8
Assume the availability of THREE (3) frames and all the frames are initially empty. How many page faults would
occur for the following page replacement algorithms. Identify the final pages in the frames.