Question: Question 4 - Process Scheduling ( 4 0 points ) ( This question is related to ILO 2 2 a - discuss the mechanisms and
Question Process Scheduling points
This question is related to ILO "discuss the mechanisms and policies in efficiently sharing of CPU
resources" and ILO "analyze and evaluate the algorithm and explain the performance issues".
Consider there are seven processes running on a singlecore processor machine. The following
table shows the arrival times and CPU burst times of the seven processes. Assume new processes
always be inserted to the ready queue just before the arrival time, eg at has been added to
the end of the ready queue.
Suppose a system uses Round Robin RR scheduling policy with a time quantum of time
units, and the context switching time is time unit.
a Draw the Gantt timeline diagram illustrating the execution of these processes under this
RR policy.
b What is the average turnaround time for the processes?
c What is the average waiting time for the processes?
d What is the average response time for the processes?
Consider another system using a variant of the Multilevel Feedback Queues MLFQ
scheduling policy. This MLFQ system adopts the following set of rules:
It has priority levels with level as the highest priority and level is the lowest.
For level its time quantum is set to time units; for level it is set to time units; for
level it is set to time units. Furthermore, assume the context switching time is time
unit.
Once a process uses up its time quantum at a given level, its priority is reduced ie it
moves down one queue
Once a process is scheduled to be executed by the processor, it will only be switched out
by the scheduler if its time quantum has reached, ie it will not be preempted by the
arrival of higher priority processes.
a Draw the Gantt diagram illustrating the execution of those processes under this MLFQ
policy.
b What is the average turnaround time for the processes?
c What is the average waiting time for the processes?
d What is the average response time for the processes?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
