
- Operating System Tutorial
- OS - Home
- OS - Overview
- OS - Components
- OS - Types
- OS - Services
- OS - Properties
- OS - Processes
- OS - Process Scheduling
- OS - Scheduling algorithms
- OS - Multi-threading
- OS - Memory Management
- OS - Virtual Memory
- OS - I/O Hardware
- OS - I/O Software
- OS - File System
- OS - Security
- OS - Linux
- OS - Exams Questions with Answers
- OS - Exams Questions with Answers
- Operating System Useful Resources
- OS - Quick Guide
- OS - Useful Resources
- OS - Discussion
OS Process Scheduling Q & A #4
Question: What is Highest Response Ratio Next (HRN) Scheduling?
Answer:
HRN is non-preemptive scheduling algorithm.
In Shortest Job First scheduling, priority is given to shortest job, which may sometimes indefinite blocking of longer job.
HRN Scheduling is used to correct this disadvantage of SJF.
For determining priority, not only the job's service time but the waiting time is also considered.
In this algorithm, dynamic priorities are used instead of fixed priorities.
Dynamic priorities in HRN are calculated as
Priority = (waiting time + service time) / service time. So shorter jobs get preference over longer processes because service time appears in the denominator.
Longer jobs that have been waiting for long period are also give favorable treatment because waiting time is considered in numerator.
os_exams_questions_answers.htm
Advertisements