HRRN MLQ Scheduling
HRRN MLQ Scheduling
System Processes
Highest Priority (FCFS)
Interactive Processes
CPU
Medium Priority (SJF)
Batch Processes
Lowest Priority (RR)
HRRN: Pros & Cons
• - ✅ Low Scheduling Overhead: scheduler only needs to select the appropriate
queue for execution.
• - ✅ Efficient Allocation of CPU Time: processes with higher priority levels are
executed in a timely manner, while still allowing lower priority processes to
execute when the CPU is idle.
• - ❌ inflexible in nature.
• - ❌ added complexity in implementing and maintaining
multiple queues and scheduling algorithms.
HRRN vs. MLQ Scheduling
Conclusion & Key Takeaways
• - HRRN improves fairness by balancing waiting
and execution time
• - MLQ is ideal for multi-user or real-time
systems
• - Choosing the right algorithm depends on
system requirements
Lab Assignment
• Write C++ code for implementing HRRN
scheduling algorithm.