You are on page 1of 10

Operating Systems Concepts

Lecture 10: Process scheduling

Dr Avani Vyas
Priority Scheduling

• Schedule a process with the high priority.

• Use FCFS in case of ties.


Priority scheduling
Example 1
Priority scheduling without preemption
Example 2

• Higher number, high priority


Priority scheduling with preemption
Example 2
Priority scheduling

• Drawback

• Low priority process is stuck in starvation or inde nite blocking.

• Solution

• Aging

• For example, increase the priority of the process by 1 every 15 minutes.

fi
Highest Response Ratio Next Scheduling
An aging technique

• RR = 1 for new processes.

• RR increases at the rate of 1/service time.

• RR increases rapidly for short processes compare to the long processes.


HRRN Scheduling
Example
HRRN Scheduling

• Not executed in preemptive mode. Obviously!!

• Practically not possible because burst time of the process cannot be known
in advance.

You might also like