SlideShare a Scribd company logo
Group – 9
Presented by - 1. Siddhartha Pande
2. Pratik Bakshi
3. Sudeep Banerjee
4. Punit Beriwal
5. Soupal Kumar Dey
 To design an algorithm that improves upon the
waiting time and the turnaround time of Round
Robin Cpu Scheduling keeping the essence of
it.
 Scheduling is a key concept in computer multitasking
,multiprocessing operating system and real-time
operating system designs. It refers to the way processes
are assigned to run on the available CPUs, since there are
typically many more processes running than there are
available CPUs. This assignment is carried out by
softwares known as a scheduler and dispatcher.
 The scheduler is concerned mainly with:
 CPU Utilization - to keep the CPU as busy as possible.
 Throughput - number of processes that complete their
execution per time unit.
 Turnaround - total time between submission of a
process and its completion.
 Waiting time - amount of time a process has been
waiting in the ready queue.
 Response time - amount of time it takes from when a
request was submitted until the first response is
produced.
 Fairness - Equal CPU time to each thread.
 Max CPU utilization
 Max throughput
 Min turnaround time
 Min waiting time
 Min response time
 First Come First Served(FCFS)
 Shortest Job First(SJF)
 Priority Scheduling
 Round Robin Scheduling(RR)
 Multi Level Queue
 Multi Level Feedback Queue
 Timesharing is the technique of scheduling a computer's
time so that they are shared across multiple tasks and
multiple users, with each user having the illusion that his
or her computation is going on continuously.
 Multitasking, in an operating system, is allowing a user to
perform more than one computer task (such as the
operation of an application program) at a time.
 Microsoft Windows 2000, IBM's OS/390, and Linux are
examples of operating systems that can do multitasking
(almost all of today's operating systems can).
 Time sharing systems implement the concept of
multitasking.
 It is of two types:
 1.Co-operative timesharing/multitasking .
 2.Pre-emptive timesharing/multitasking.
 1.Round Robin Scheduling.
 2.Multi Level Feedback Queue
 Round-robin (RR) is one of the simplest scheduling
algorithms for processes in an operating system ,which
assigns time slices to each process in equal portions and
in circular order, handling all processes without priority
(also known as cyclic executive). Round-robin scheduling
is both simple and easy to implement, and starvation-
free.
 Each process gets a small unit of CPU time (time quantum), usually
10-100 milliseconds. After this time has elapsed, the process is
preempted and added to the end of the ready queue.
 If there are n processes in the ready queue and the time quantum is q,
then each process gets 1/n of the CPU time in chunks of at most q
time units at once. No process waits more than (n-1)q time units.
 Performance
 q large  FIFO
 q small  High overhead: Must be large with respect to context
switch, otherwise overhead is too high.
 The main drawback of Round Robin algorithm
lies in the absence of taking into consideration
the priorities of the tasks.
 Henceforth we have designed an algorithm based
on it that provides us with an improved
efficiency.
 Each task/process can be assigned a priority ranging from 1 to
5 (5 being the highest and 1 being the lowest priority assigned
) in that order.
 Processes are grouped according to their priorities in queues
.(thus there being 5 queues) and processing starts from the
highest priority task available.
 Each queue can consist of a maximum of 10 processes with the
time quantum being 10 ms.
 Queues are processed according to their priority.(ie priority 5
queue is processed first , then 4 and so on …)
 Priority 5 queue is processed 2 times and then control
switches to the following queues which are all processed
single time.
Priority 5 Priority 4 Priority 3 Priority 2 Priority 1
P1 P2 P3 P4 P5 P6 P7 P8 P9 P10
5 4 5 4 3 3 2 1 1 1
P1 P3 P7 p11 p17 p23 p27 p54 p89
QUEUE FOR PRIORITY 5
TIME QUANTUM=10ms
PRIORITISED QUEUES IN ROUND ROBIN
READY QUEUE
P1 P2 P3 P4 P5 P6 P7 P8 P9 P10
1 10 18 20 6 5 4 18 6 10
5 5 2 1 3 4 4 1 5 2
P1 P2 P7
0 1 11
P6 P7
17 22
P5
26
P3 P10 P3
32 42 52
P4 P8 P4 P8
60 70 80 90 98
PROCESS
BURST TIME
ms
PRIORITY
AVERAGE WAITING TIME=(0+1+11+17+22+26+42+70+80+42)/10
= 31.1 ms
AVERAGE TURN AROUND TIME=(1+11+17+22+26+32+52+60+90+98)/10
=40.9 ms
0
10
20
30
40
50
60
Average
waiting time
Average
TurnAround
Time
Round Robin
Our algorithm
P1 P2 P3 P4 P5 P6 P7
5 5 1 4 2 3 1
10 15 6 8 7 12 9
2 5 3 4 8 10 12
PROCESS
PRIORITY
BURSTTIME ms
ARRIVAL TIME
ms
ROUND ROBIN SCHEDULING
ALGORITHM
OUR ALGORITHM
AVERAGE WAITING TIME
= 29.14 ms
AVERAGE WAITING TIME
=27.42 ms
AVERAGE TURN AROUND
TIME =39 ms
AVERAGE TURN AROUND
TIME =37.14 ms
0
5
10
15
20
25
30
35
40
45
Average
waiting time
Average turn
around time
Round robin
Our algorithm
1. When we have processes that have mixed priorities our algorithm
gives better results compared to Round Robin.
2. When most of the processes are high priority processes then
the efficiency of our algorithm turns out to be even better.
3. When most of the processes are low priority then efficiency does
not differ much from Round Robin.
4. When all the processes have the same priority then our algorithm
simply reduces to Round Robin Scheduling Algorithm.
 The ratio of no of processing times of priority queue 5 to that
of priority queue 4 is p:q(current ratio being 2:1).
 Apposite time quantum.
 Developing a function for priority for tasks where priority of a
task=priority given by user + time function(time
elapsed).Processes can be shifted to a higher queue as their
priority increases.
 We hope that by implementing the above mentioned things we
get a further improved efficiency.
Cpu scheduling algorithm on windows

More Related Content

What's hot

RT linux
RT linuxRT linux
RT linux
SARITHA REDDY
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithms
Danish Javed
 
Introduction to HPC
Introduction to HPCIntroduction to HPC
Introduction to HPC
Chris Dwan
 
17 cpu scheduling and scheduling criteria
17 cpu scheduling and scheduling criteria 17 cpu scheduling and scheduling criteria
17 cpu scheduling and scheduling criteria
myrajendra
 
Reference model of real time system
Reference model of real time systemReference model of real time system
Reference model of real time system
Kamal Acharya
 
PART-1 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PART-1 : Mastering RTOS FreeRTOS and STM32Fx with DebuggingPART-1 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PART-1 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
FastBit Embedded Brain Academy
 
pipelining and hazards occure in assembly language.
pipelining and hazards occure in assembly language.pipelining and hazards occure in assembly language.
pipelining and hazards occure in assembly language.
Zohaib Arshid
 
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING
ADVANCED COMPUTER ARCHITECTUREAND PARALLEL PROCESSINGADVANCED COMPUTER ARCHITECTUREAND PARALLEL PROCESSING
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING
Zena Abo-Altaheen
 
Sequential consistency model
Sequential consistency modelSequential consistency model
Sequential consistency model
Bharathi Lakshmi Pon
 
C++ vs python
C++ vs pythonC++ vs python
C++ vs python
AbdulhameedMandili
 
Real time operating systems (rtos) concepts 4
Real time operating systems (rtos) concepts 4Real time operating systems (rtos) concepts 4
Real time operating systems (rtos) concepts 4
Abu Bakr Ramadan
 
Real-Time Scheduling
Real-Time SchedulingReal-Time Scheduling
Real-Time Scheduling
sathish sak
 
Compiler construction tools
Compiler construction toolsCompiler construction tools
Compiler construction tools
Akhil Kaushik
 
Fcfs scheduling
Fcfs schedulingFcfs scheduling
Fcfs scheduling
myrajendra
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
Dr Sandeep Kumar Poonia
 
Round Robin Algorithm.pptx
Round Robin Algorithm.pptxRound Robin Algorithm.pptx
Round Robin Algorithm.pptx
Sanad Bhowmik
 
Lecture 1 introduction to parallel and distributed computing
Lecture 1   introduction to parallel and distributed computingLecture 1   introduction to parallel and distributed computing
Lecture 1 introduction to parallel and distributed computing
Vajira Thambawita
 
Superscalar processor
Superscalar processorSuperscalar processor
Superscalar processor
noor ul ain
 
High performance computing tutorial, with checklist and tips to optimize clus...
High performance computing tutorial, with checklist and tips to optimize clus...High performance computing tutorial, with checklist and tips to optimize clus...
High performance computing tutorial, with checklist and tips to optimize clus...
Pradeep Redddy Raamana
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
A B Shinde
 

What's hot (20)

RT linux
RT linuxRT linux
RT linux
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithms
 
Introduction to HPC
Introduction to HPCIntroduction to HPC
Introduction to HPC
 
17 cpu scheduling and scheduling criteria
17 cpu scheduling and scheduling criteria 17 cpu scheduling and scheduling criteria
17 cpu scheduling and scheduling criteria
 
Reference model of real time system
Reference model of real time systemReference model of real time system
Reference model of real time system
 
PART-1 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PART-1 : Mastering RTOS FreeRTOS and STM32Fx with DebuggingPART-1 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PART-1 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
 
pipelining and hazards occure in assembly language.
pipelining and hazards occure in assembly language.pipelining and hazards occure in assembly language.
pipelining and hazards occure in assembly language.
 
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING
ADVANCED COMPUTER ARCHITECTUREAND PARALLEL PROCESSINGADVANCED COMPUTER ARCHITECTUREAND PARALLEL PROCESSING
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING
 
Sequential consistency model
Sequential consistency modelSequential consistency model
Sequential consistency model
 
C++ vs python
C++ vs pythonC++ vs python
C++ vs python
 
Real time operating systems (rtos) concepts 4
Real time operating systems (rtos) concepts 4Real time operating systems (rtos) concepts 4
Real time operating systems (rtos) concepts 4
 
Real-Time Scheduling
Real-Time SchedulingReal-Time Scheduling
Real-Time Scheduling
 
Compiler construction tools
Compiler construction toolsCompiler construction tools
Compiler construction tools
 
Fcfs scheduling
Fcfs schedulingFcfs scheduling
Fcfs scheduling
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
 
Round Robin Algorithm.pptx
Round Robin Algorithm.pptxRound Robin Algorithm.pptx
Round Robin Algorithm.pptx
 
Lecture 1 introduction to parallel and distributed computing
Lecture 1   introduction to parallel and distributed computingLecture 1   introduction to parallel and distributed computing
Lecture 1 introduction to parallel and distributed computing
 
Superscalar processor
Superscalar processorSuperscalar processor
Superscalar processor
 
High performance computing tutorial, with checklist and tips to optimize clus...
High performance computing tutorial, with checklist and tips to optimize clus...High performance computing tutorial, with checklist and tips to optimize clus...
High performance computing tutorial, with checklist and tips to optimize clus...
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
 

Similar to Cpu scheduling algorithm on windows

Scheduling algo(by HJ)
Scheduling algo(by HJ)Scheduling algo(by HJ)
Scheduling algo(by HJ)
Harshit Jain
 
Cpu Scheduling Galvin
Cpu Scheduling GalvinCpu Scheduling Galvin
Cpu Scheduling Galvin
Sonali Chauhan
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
Dr. Mazin Mohamed alkathiri
 
dataprocess using different technology.ppt
dataprocess using different technology.pptdataprocess using different technology.ppt
dataprocess using different technology.ppt
ssuserf6eb9b
 
Ch05 cpu-scheduling
Ch05 cpu-schedulingCh05 cpu-scheduling
Ch05 cpu-scheduling
Nazir Ahmed
 
chapter 5 CPU scheduling.ppt
chapter  5 CPU scheduling.pptchapter  5 CPU scheduling.ppt
chapter 5 CPU scheduling.ppt
KeyreSebre
 
3 process scheduling
3 process scheduling3 process scheduling
3 process scheduling
ahad alam
 
CPU scheduling
CPU schedulingCPU scheduling
CPU scheduling
Amir Khan
 
Fcfs and sjf
Fcfs and sjfFcfs and sjf
Fcfs and sjf
A. S. M. Shafi
 
Operating System Scheduling
Operating System SchedulingOperating System Scheduling
Operating System Scheduling
Vishnu Prasad
 
CPU Scheduling
CPU SchedulingCPU Scheduling
CPU Scheduling
M. Abdullah Wasif
 
3_process_scheduling.ppt
3_process_scheduling.ppt3_process_scheduling.ppt
3_process_scheduling.ppt
ShrutiArora343479
 
fggggggggggggggggggggggggggggggfffffffffffffffffff
fggggggggggggggggggggggggggggggffffffffffffffffffffggggggggggggggggggggggggggggggfffffffffffffffffff
fggggggggggggggggggggggggggggggfffffffffffffffffff
adugnanegero
 
3_process_scheduling.ppt
3_process_scheduling.ppt3_process_scheduling.ppt
3_process_scheduling.ppt
AbdulRahman491811
 
Process Scheduling Algorithms for Operating Systems
Process Scheduling Algorithms for Operating SystemsProcess Scheduling Algorithms for Operating Systems
Process Scheduling Algorithms for Operating Systems
KathirvelRajan2
 
3_process_scheduling.ppt----------------
3_process_scheduling.ppt----------------3_process_scheduling.ppt----------------
3_process_scheduling.ppt----------------
DivyaBorade3
 
Process management in os
Process management in osProcess management in os
Process management in os
Miong Lazaro
 
Process Scheduling Algorithms.pdf
Process Scheduling Algorithms.pdfProcess Scheduling Algorithms.pdf
Process Scheduling Algorithms.pdf
Rakibul Rakib
 
Cpu scheduling in operating System.
Cpu scheduling in operating System.Cpu scheduling in operating System.
Cpu scheduling in operating System.
Ravi Kumar Patel
 
Lecture 5, 6 and 7 cpu scheduling
Lecture 5, 6 and 7  cpu schedulingLecture 5, 6 and 7  cpu scheduling
Lecture 5, 6 and 7 cpu scheduling
Rushdi Shams
 

Similar to Cpu scheduling algorithm on windows (20)

Scheduling algo(by HJ)
Scheduling algo(by HJ)Scheduling algo(by HJ)
Scheduling algo(by HJ)
 
Cpu Scheduling Galvin
Cpu Scheduling GalvinCpu Scheduling Galvin
Cpu Scheduling Galvin
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
dataprocess using different technology.ppt
dataprocess using different technology.pptdataprocess using different technology.ppt
dataprocess using different technology.ppt
 
Ch05 cpu-scheduling
Ch05 cpu-schedulingCh05 cpu-scheduling
Ch05 cpu-scheduling
 
chapter 5 CPU scheduling.ppt
chapter  5 CPU scheduling.pptchapter  5 CPU scheduling.ppt
chapter 5 CPU scheduling.ppt
 
3 process scheduling
3 process scheduling3 process scheduling
3 process scheduling
 
CPU scheduling
CPU schedulingCPU scheduling
CPU scheduling
 
Fcfs and sjf
Fcfs and sjfFcfs and sjf
Fcfs and sjf
 
Operating System Scheduling
Operating System SchedulingOperating System Scheduling
Operating System Scheduling
 
CPU Scheduling
CPU SchedulingCPU Scheduling
CPU Scheduling
 
3_process_scheduling.ppt
3_process_scheduling.ppt3_process_scheduling.ppt
3_process_scheduling.ppt
 
fggggggggggggggggggggggggggggggfffffffffffffffffff
fggggggggggggggggggggggggggggggffffffffffffffffffffggggggggggggggggggggggggggggggfffffffffffffffffff
fggggggggggggggggggggggggggggggfffffffffffffffffff
 
3_process_scheduling.ppt
3_process_scheduling.ppt3_process_scheduling.ppt
3_process_scheduling.ppt
 
Process Scheduling Algorithms for Operating Systems
Process Scheduling Algorithms for Operating SystemsProcess Scheduling Algorithms for Operating Systems
Process Scheduling Algorithms for Operating Systems
 
3_process_scheduling.ppt----------------
3_process_scheduling.ppt----------------3_process_scheduling.ppt----------------
3_process_scheduling.ppt----------------
 
Process management in os
Process management in osProcess management in os
Process management in os
 
Process Scheduling Algorithms.pdf
Process Scheduling Algorithms.pdfProcess Scheduling Algorithms.pdf
Process Scheduling Algorithms.pdf
 
Cpu scheduling in operating System.
Cpu scheduling in operating System.Cpu scheduling in operating System.
Cpu scheduling in operating System.
 
Lecture 5, 6 and 7 cpu scheduling
Lecture 5, 6 and 7  cpu schedulingLecture 5, 6 and 7  cpu scheduling
Lecture 5, 6 and 7 cpu scheduling
 

Recently uploaded

KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
wisnuprabawa3
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
mahammadsalmanmech
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
enizeyimana36
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
nooriasukmaningtyas
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
Las Vegas Warehouse
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
mamamaam477
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
IJECEIAES
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
rpskprasana
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
NazakatAliKhoso2
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
ihlasbinance2003
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
RadiNasr
 

Recently uploaded (20)

KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
 

Cpu scheduling algorithm on windows

  • 1. Group – 9 Presented by - 1. Siddhartha Pande 2. Pratik Bakshi 3. Sudeep Banerjee 4. Punit Beriwal 5. Soupal Kumar Dey
  • 2.  To design an algorithm that improves upon the waiting time and the turnaround time of Round Robin Cpu Scheduling keeping the essence of it.
  • 3.  Scheduling is a key concept in computer multitasking ,multiprocessing operating system and real-time operating system designs. It refers to the way processes are assigned to run on the available CPUs, since there are typically many more processes running than there are available CPUs. This assignment is carried out by softwares known as a scheduler and dispatcher.
  • 4.  The scheduler is concerned mainly with:  CPU Utilization - to keep the CPU as busy as possible.  Throughput - number of processes that complete their execution per time unit.  Turnaround - total time between submission of a process and its completion.  Waiting time - amount of time a process has been waiting in the ready queue.  Response time - amount of time it takes from when a request was submitted until the first response is produced.  Fairness - Equal CPU time to each thread.
  • 5.  Max CPU utilization  Max throughput  Min turnaround time  Min waiting time  Min response time
  • 6.  First Come First Served(FCFS)  Shortest Job First(SJF)  Priority Scheduling  Round Robin Scheduling(RR)  Multi Level Queue  Multi Level Feedback Queue
  • 7.  Timesharing is the technique of scheduling a computer's time so that they are shared across multiple tasks and multiple users, with each user having the illusion that his or her computation is going on continuously.
  • 8.
  • 9.  Multitasking, in an operating system, is allowing a user to perform more than one computer task (such as the operation of an application program) at a time.  Microsoft Windows 2000, IBM's OS/390, and Linux are examples of operating systems that can do multitasking (almost all of today's operating systems can).
  • 10.
  • 11.  Time sharing systems implement the concept of multitasking.  It is of two types:  1.Co-operative timesharing/multitasking .  2.Pre-emptive timesharing/multitasking.
  • 12.  1.Round Robin Scheduling.  2.Multi Level Feedback Queue
  • 13.  Round-robin (RR) is one of the simplest scheduling algorithms for processes in an operating system ,which assigns time slices to each process in equal portions and in circular order, handling all processes without priority (also known as cyclic executive). Round-robin scheduling is both simple and easy to implement, and starvation- free.
  • 14.  Each process gets a small unit of CPU time (time quantum), usually 10-100 milliseconds. After this time has elapsed, the process is preempted and added to the end of the ready queue.  If there are n processes in the ready queue and the time quantum is q, then each process gets 1/n of the CPU time in chunks of at most q time units at once. No process waits more than (n-1)q time units.  Performance  q large  FIFO  q small  High overhead: Must be large with respect to context switch, otherwise overhead is too high.
  • 15.
  • 16.  The main drawback of Round Robin algorithm lies in the absence of taking into consideration the priorities of the tasks.  Henceforth we have designed an algorithm based on it that provides us with an improved efficiency.
  • 17.  Each task/process can be assigned a priority ranging from 1 to 5 (5 being the highest and 1 being the lowest priority assigned ) in that order.  Processes are grouped according to their priorities in queues .(thus there being 5 queues) and processing starts from the highest priority task available.  Each queue can consist of a maximum of 10 processes with the time quantum being 10 ms.  Queues are processed according to their priority.(ie priority 5 queue is processed first , then 4 and so on …)  Priority 5 queue is processed 2 times and then control switches to the following queues which are all processed single time.
  • 18. Priority 5 Priority 4 Priority 3 Priority 2 Priority 1 P1 P2 P3 P4 P5 P6 P7 P8 P9 P10 5 4 5 4 3 3 2 1 1 1 P1 P3 P7 p11 p17 p23 p27 p54 p89 QUEUE FOR PRIORITY 5 TIME QUANTUM=10ms PRIORITISED QUEUES IN ROUND ROBIN READY QUEUE
  • 19. P1 P2 P3 P4 P5 P6 P7 P8 P9 P10 1 10 18 20 6 5 4 18 6 10 5 5 2 1 3 4 4 1 5 2 P1 P2 P7 0 1 11 P6 P7 17 22 P5 26 P3 P10 P3 32 42 52 P4 P8 P4 P8 60 70 80 90 98 PROCESS BURST TIME ms PRIORITY AVERAGE WAITING TIME=(0+1+11+17+22+26+42+70+80+42)/10 = 31.1 ms AVERAGE TURN AROUND TIME=(1+11+17+22+26+32+52+60+90+98)/10 =40.9 ms
  • 21. P1 P2 P3 P4 P5 P6 P7 5 5 1 4 2 3 1 10 15 6 8 7 12 9 2 5 3 4 8 10 12 PROCESS PRIORITY BURSTTIME ms ARRIVAL TIME ms ROUND ROBIN SCHEDULING ALGORITHM OUR ALGORITHM AVERAGE WAITING TIME = 29.14 ms AVERAGE WAITING TIME =27.42 ms AVERAGE TURN AROUND TIME =39 ms AVERAGE TURN AROUND TIME =37.14 ms
  • 23. 1. When we have processes that have mixed priorities our algorithm gives better results compared to Round Robin. 2. When most of the processes are high priority processes then the efficiency of our algorithm turns out to be even better. 3. When most of the processes are low priority then efficiency does not differ much from Round Robin. 4. When all the processes have the same priority then our algorithm simply reduces to Round Robin Scheduling Algorithm.
  • 24.  The ratio of no of processing times of priority queue 5 to that of priority queue 4 is p:q(current ratio being 2:1).  Apposite time quantum.  Developing a function for priority for tasks where priority of a task=priority given by user + time function(time elapsed).Processes can be shifted to a higher queue as their priority increases.  We hope that by implementing the above mentioned things we get a further improved efficiency.