SlideShare a Scribd company logo
5
Most read
7
Most read
11
Most read
Multilevel Queue Scheduling
Principles of Operating System
➢ CPU scheduling
➢ Multilevel queue scheduling
➢ First priority preemptive scheduling method.
➢ Time slicing method
➢ Advantage and Disadvantage
➢ Conclusion
Overview
What is CPU Scheduling?
CPU Scheduling is a process of determining which process
will own CPU for execution while another process is on
hold.
The Processes that needs to be executed are kept into
the ready queue and then they are executed one by one in
the CPU.
But…
In real life, there are more than one type of processes
like..
System Process
Interactive
Process
Background
Process
If we have different types of processes then why
there’s just one ready queue for all of them!!
MULTILEVEL QUEUE SCHEDULING
● Multilevel queue scheduling is a type of CPU
scheduling in which the processes in the
ready state are divided into different
groups, each group having its own scheduling
needs.
● The ready queue is divided into different
queues according to different properties of
the process like memory size, process
priority, or process type.
Suppose there are 3 processes ready to execute:
1. System process
The CPU stops executing other processes when system
interrupts.
That’s why it has the highest priority.
2. Interactive process
Process where we can directly interact with the application.
That’s why it’s priority is less than system process.
3. Background process
Where we give multiple processes to the system and system
will keep executing the processes in the background.
It has the lowest priority.
● There must be different queue for every process, that means each
process will have its own queue.
● Each queue is assigned an absolute priority over other queues
System process queue > Interactive process queue > Background process queue
● This method is called
first priority preemptive
scheduling method.
● Overall gist of this
method is that run the
processes with higher
priority first and then
the processes with
subsequent priority.
Time Slicing method:
In this method, processes from each queue are run for a fixed amount
of time, and then we move on to the next queue. When we arrive at
the last queue, we run it for a specific amount of time, and then we
move back to the first queue.
For example, queue one runs for 50% of CPU time, queue two runs for
30% of CPU time, and queue three runs for 20% of CPU time. In this
way, the total CPU time is divided among each queue to run their
processes.
We need to run the processes in all the queues in the same
manner, or we can have different implementations for each queue.
There are many algorithms using which we can decide the process
to be run first and for how long.
For example:
● The system process queue can use FCFS(First Come, First
Serve) scheduling.
● The interactive process queue can use SJF(Shortest Job
First) scheduling.
● The batch process queue can use RR(Round Robin)
scheduling.
Multilevel queue scheduling
Example:
Advantages:
It allows us to apply different scheduling algorithms for different
processes.
It offers a low scheduling overhead, i.e., the time taken by the dispatcher
to move the process from the ready state to the running state is low.
Dispatcher performs the task of allocating the selected process to the CPU.
Disadvantages:
There are chances of starvation for lower priority processes. If higher
priority processes keep coming, then the lower priority processes won't
get an opportunity to go into the running state.
Multilevel queue scheduling is inflexible.
Conclusion:
● Multilevel Queue Scheduling is a part of CPU scheduling.
● For each different types of processes has its own queue
which executes from highest priority to the lowest
priority.
● There are many algorithms that can be used to run the
process.
● Multilevel Queue Scheduling has its advantages as well as
disadvantages like Starvation, that’s why we use Multilevel
feedback Queue Scheduling
THANK YOU
Presented by:
428_Kuldeep Pandey
429_Aditi Pawaskar
430_Aakanksha Rajbhar

More Related Content

PPTX
Priority Scheduling
PPTX
MULTILEVEL QUEUE SCHEDULING
PPTX
PPTX
Cpu scheduling
PDF
6 cpu scheduling
PPSX
CPU Scheduling algorithms
DOCX
operating system question bank
PPTX
First Come First Serve & Shortest Job First-(FCFS & SJF)
Priority Scheduling
MULTILEVEL QUEUE SCHEDULING
Cpu scheduling
6 cpu scheduling
CPU Scheduling algorithms
operating system question bank
First Come First Serve & Shortest Job First-(FCFS & SJF)

What's hot (20)

PPTX
contiguous memory allocation.pptx
PPTX
Operating system 18 process creation and termination
PPTX
Demand paging
PPTX
Deadlock Avoidance in Operating System
PPTX
System call
PDF
Process scheduling (CPU Scheduling)
PPT
deadlock avoidance
PDF
Deadlock Avoidance - OS
PPTX
Cpu scheduling in operating System.
PPT
Deadlock
PPTX
Page replacement algorithms
PPTX
Segmentation in Operating Systems.
PPTX
Dead Lock in operating system
PPTX
File system structure
PPTX
Segmentation in operating systems
PPTX
Deadlocks in operating system
PPTX
Demand paging
PPT
Introduction to System Calls
PPT
Contiguous Memory Allocation.ppt
PPTX
Deadlock ppt
contiguous memory allocation.pptx
Operating system 18 process creation and termination
Demand paging
Deadlock Avoidance in Operating System
System call
Process scheduling (CPU Scheduling)
deadlock avoidance
Deadlock Avoidance - OS
Cpu scheduling in operating System.
Deadlock
Page replacement algorithms
Segmentation in Operating Systems.
Dead Lock in operating system
File system structure
Segmentation in operating systems
Deadlocks in operating system
Demand paging
Introduction to System Calls
Contiguous Memory Allocation.ppt
Deadlock ppt
Ad

Similar to Multilevel queue scheduling (20)

PPT
Cpu scheduling(suresh)
PPTX
Scheduling algo(by HJ)
PDF
Ch6 cpu scheduling
PDF
cpu scheduling.pdfoieheoirwuojorkjp;ooooo
PPTX
cpu-scheduling presentation for IT/CS.pptx
PPT
cpu sechduling
PPTX
CPU Scheduling.pptx this is operating system
PPTX
Operating system 30 preemptive scheduling
PPTX
Process Scheduling Algorithms | Interviews | Operating system
PDF
operating system (1).pdf
PPTX
Lecture 4 process cpu scheduling
PPTX
Process scheduling in Light weight weight and Heavy weight processes.
PPTX
Process and CPU scheduler
PDF
PPTX
Process scheduling
PDF
Cpu Schedule Algorithm
PPTX
CPU scheduling algorithms in OS
PPT
Cp usched 2
PDF
Operating System-Process Scheduling
Cpu scheduling(suresh)
Scheduling algo(by HJ)
Ch6 cpu scheduling
cpu scheduling.pdfoieheoirwuojorkjp;ooooo
cpu-scheduling presentation for IT/CS.pptx
cpu sechduling
CPU Scheduling.pptx this is operating system
Operating system 30 preemptive scheduling
Process Scheduling Algorithms | Interviews | Operating system
operating system (1).pdf
Lecture 4 process cpu scheduling
Process scheduling in Light weight weight and Heavy weight processes.
Process and CPU scheduler
Process scheduling
Cpu Schedule Algorithm
CPU scheduling algorithms in OS
Cp usched 2
Operating System-Process Scheduling
Ad

Recently uploaded (20)

PDF
August 2025 - Top 10 Read Articles in Network Security & Its Applications
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PDF
Design Guidelines and solutions for Plastics parts
PPTX
Artificial Intelligence
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
PDF
Visual Aids for Exploratory Data Analysis.pdf
PPTX
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPTX
introduction to high performance computing
PPTX
Fundamentals of Mechanical Engineering.pptx
PDF
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPTX
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
PPTX
"Array and Linked List in Data Structures with Types, Operations, Implementat...
PDF
Abrasive, erosive and cavitation wear.pdf
PDF
737-MAX_SRG.pdf student reference guides
PPT
Occupational Health and Safety Management System
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
August 2025 - Top 10 Read Articles in Network Security & Its Applications
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
Design Guidelines and solutions for Plastics parts
Artificial Intelligence
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
Visual Aids for Exploratory Data Analysis.pdf
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
introduction to high performance computing
Fundamentals of Mechanical Engineering.pptx
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
"Array and Linked List in Data Structures with Types, Operations, Implementat...
Abrasive, erosive and cavitation wear.pdf
737-MAX_SRG.pdf student reference guides
Occupational Health and Safety Management System
Fundamentals of safety and accident prevention -final (1).pptx

Multilevel queue scheduling

  • 2. ➢ CPU scheduling ➢ Multilevel queue scheduling ➢ First priority preemptive scheduling method. ➢ Time slicing method ➢ Advantage and Disadvantage ➢ Conclusion Overview
  • 3. What is CPU Scheduling? CPU Scheduling is a process of determining which process will own CPU for execution while another process is on hold. The Processes that needs to be executed are kept into the ready queue and then they are executed one by one in the CPU.
  • 4. But… In real life, there are more than one type of processes like.. System Process Interactive Process Background Process If we have different types of processes then why there’s just one ready queue for all of them!!
  • 5. MULTILEVEL QUEUE SCHEDULING ● Multilevel queue scheduling is a type of CPU scheduling in which the processes in the ready state are divided into different groups, each group having its own scheduling needs. ● The ready queue is divided into different queues according to different properties of the process like memory size, process priority, or process type.
  • 6. Suppose there are 3 processes ready to execute: 1. System process The CPU stops executing other processes when system interrupts. That’s why it has the highest priority. 2. Interactive process Process where we can directly interact with the application. That’s why it’s priority is less than system process. 3. Background process Where we give multiple processes to the system and system will keep executing the processes in the background. It has the lowest priority.
  • 7. ● There must be different queue for every process, that means each process will have its own queue. ● Each queue is assigned an absolute priority over other queues System process queue > Interactive process queue > Background process queue ● This method is called first priority preemptive scheduling method. ● Overall gist of this method is that run the processes with higher priority first and then the processes with subsequent priority.
  • 8. Time Slicing method: In this method, processes from each queue are run for a fixed amount of time, and then we move on to the next queue. When we arrive at the last queue, we run it for a specific amount of time, and then we move back to the first queue. For example, queue one runs for 50% of CPU time, queue two runs for 30% of CPU time, and queue three runs for 20% of CPU time. In this way, the total CPU time is divided among each queue to run their processes.
  • 9. We need to run the processes in all the queues in the same manner, or we can have different implementations for each queue. There are many algorithms using which we can decide the process to be run first and for how long. For example: ● The system process queue can use FCFS(First Come, First Serve) scheduling. ● The interactive process queue can use SJF(Shortest Job First) scheduling. ● The batch process queue can use RR(Round Robin) scheduling.
  • 12. Advantages: It allows us to apply different scheduling algorithms for different processes. It offers a low scheduling overhead, i.e., the time taken by the dispatcher to move the process from the ready state to the running state is low. Dispatcher performs the task of allocating the selected process to the CPU. Disadvantages: There are chances of starvation for lower priority processes. If higher priority processes keep coming, then the lower priority processes won't get an opportunity to go into the running state. Multilevel queue scheduling is inflexible.
  • 13. Conclusion: ● Multilevel Queue Scheduling is a part of CPU scheduling. ● For each different types of processes has its own queue which executes from highest priority to the lowest priority. ● There are many algorithms that can be used to run the process. ● Multilevel Queue Scheduling has its advantages as well as disadvantages like Starvation, that’s why we use Multilevel feedback Queue Scheduling
  • 14. THANK YOU Presented by: 428_Kuldeep Pandey 429_Aditi Pawaskar 430_Aakanksha Rajbhar