SlideShare a Scribd company logo
1 of 25
By
Hasib Shaikh
10
3. Scheduling Strategies
• The goal of any scheduling strategy is to maximize CPU
usage and throughput while minimizing turnaround
time, waiting time, and response time.
• Here we focus on the problems of deciding which
process should use the CPU and when a process should
be removed from using the CPU.
• Scheduling Strategies:
1. First-Come-First-Served Strategy
2. Shortest-Job-First Strategy
3. Round-Robin Strategy
4. Priority Strategy
5. Multiple-Queuing Strategy
6. Real-time Strategy
10
11
1. First-Come-First-Served Strategy
• Provides easiest way to schedule a CPU
• It allows the first process that requests a CPU to use
the CPU until the process is completed.
• When one process is using the CPU, other processes
that need the CPU simply queue up in the ready
queue.
• This allows the head of the ready queue to be used
as the next process to be scheduled.
• It is non pre-emptive. Processes are removed from
the CPU only when they are in the waiting state or
they have terminated.
1. First-Come-First-Served Strategy contd…
• Consider the following set of
processes that arrive to use a
CPU in the order stated:
• An FCFS scheduler would
schedule them as shown in
Figure 5.1.
12
•Consider the following set of processes that arrive to use a
CPU in the order stated:
•The throughput of our
imaginary system is 4
processes in 53 time units
•the average waiting time
is 28 time units.
1. First-Come-First-Served Strategy contd…
• Consider a different ordering of processes.
• In this situation, we can measure time in the
following way:
13
•In this scenario, the throughput of our system is the
same: 4 processes in 53 time units.
• But the waiting time is much better: the average
waiting time for this example is 9.5 time units.
1. First-Come-First-Served Strategy contd..
14
•FCFS strategy does not guarantee minimal criteria
and measures may vary substantially depending on
process execution times and the order of execution.
•Fairness issues hurt the consideration of this
scheduling strategy.
•FCFS is inherently unpredictable and may very
likely produce unfair schedules.
2. Shortest-Job-First Strategy
• If we always chose the process with the shortest
running time first, it would seem that we could
improve the measurements we are watching.
• As an example, consider a new set of processes:
15
2. Shortest-Job-First Strategy contd…
16
•The shortest-job-first (SJF) scheduling strategy is illustrated in Figure given below
•This ordering produces the following measurements:
•This order of
processing has an
average wait time of
10.75 time units.
•If we had used the
FCFS strategy, the
average waiting time
would be
12.25 time units.
2. Shortest-Job-First Strategy contd…
• While it is possible to prove that an SJF strategy
is optimal for average times, the strategy has
several issues.
1. it penalizes long processes simply for being
long.
2. Secondly, it becomes possible to starve a
process.
 Starvation occurs when a process is waiting in the
ready queue but never makes it to the running state.
As long as processes enter the queue with running
times shorter than it, that process is never run on
the CPU.
17
3. Round-Robin Strategy
• Both FCFS and SJF are usually used as non-pre-
emptive strategies. However, we still have the
criterion of fairness to consider.
▫ Fairness is a measure of how much time each
process spends on the CPU.
▫ If we schedule processes to run to completion or we
depend on processes to give up the CPU when they
can, we can make measurements but we can make no
statement about fairness.
• Fairness can only be assured when we use a pre-
emptive strategy.
▫ In a round-robin strategy, all processes are given the
same time slice and are pre-empted and placed on the
ready queue in the order they ran on the CPU.
18
3. Round-Robin Strategy contd…
19
• For example, consider the processes below:
•Let’s say the time slice in this
system is 5 time units.
• A roundrobin scheduling strategy
would produce a timeline like that
shown in above Figure 5.4.
3. Round-Robin Strategy contd…
• There is very little to manage about a round-robin
strategy.
▫ The only variable in the scheme is the length of the
time slice – the amount of time spent on the processor.
▫ Setting this time to be too short – say close to the time
it takes to perform a context switch – is
counterproductive. It lets the context-switching time
dominate performance and lowers CPU efficiency.
• However, making a time slice too long gets away
from the benefits of a round-robin strategy.
• Response time decreases for short requests.
• A round-robin strategy puts all processes on an
equal footing.
20
4. Priority Strategy
• A priority-scheduling strategy takes into account
that processes have different importance placed
upon them.
• In priority scheduling, the process in the ready
queue with the highest priority is chosen to run.
• This type of scheduling can be either pre-
emptive or non-pre-emptive, as it is the
choice of the next process that defines a priority-
scheduling strategy.
21
4. Priority Strategy contd…
• Priority scheduling makes certain requirements
of the operating system.
▫ The operating system must employ the concept of
process priority.
 The priority is an attribute of a process that
measures the importance of the process in
relationship to others and allows the operating
system to make decisions about scheduling and the
amount of time to keep a process on a processor.
 In a pre-emptive scheduling environment, process
priority is a very useful attribute to assign to a
process.
 The priority of the process is usually given by a
number, which is kept in the process’s PCB.
22
4. Priority Strategy contd…
• It is usually required that the operating system be
allowed to manipulate priorities somehow.
▫ Priorities are set by the user or the process creator but
the operating system is usually allowed to change priorities
dynamically.
▫ The operating system requires the ability to adjust the
priority of such a process as it moves through its
execution.
• Priorities themselves usually take the form of numbers,
quantities that can be easily compared by the operating
system.
• Microsoft Windows assigns values from 0 to 31; various
Unix implementations assign negative as well as
positive values to reflect user (negative) and system
(positive) priority assignment.
• As that shows, there is no general agreement on
assigning priority values.
23
4. Priority Strategy contd…
• example of priority scheduling. Let’s say that
requests for the processor are made in the
following order:
24
• For the purposes of this example,
higher numbers mean higher
priority
5. Multiple-Queuing Strategy
• We have described priority scheduling as a
matter of choice: choosing the process with the
highest priority to schedule on the processor.
▫ In many operating systems, processes do not have
unique priorities. There may be many processes with
the same priority.
▫ Many system processes have the same high priority.
This means that the scheduler is eventually going to
have to choose between processes with the same
priority.
• Priority scheduling is often implemented with
priority queues.
• A priority queue holds processes of a certain
priority value or range of values.
25
5. Multiple-Queuing Strategy contd…
• The multiple-queuing scheduling strategy could
even use multiple strategies:
▫ different scheduling strategies for different
queues.
▫ Processes are
 either permanently assigned to a specific queue,
based on their characteristics upon entering the
system,
 Or they can move between queues, based on their
changing characteristics as they are executed in the
system.
26
6. Real-time Strategy
• real-time systems can be classified as one of two
different system types, each with different scheduling
needs.
▫ Hard real-time systems guarantee that time constraints are
met.
 there is usually a specific amount of time that is specified
along with the process-scheduling request.
 The system guarantees that the process is run in the specified
amount of time or that the process is not run at all.
▫ Soft real-time systems place a priority on time-critical
processes and are less restrictive.
 It do not guarantee performance; they give real-time processes
favorable treatment and keep certain latency times to a
minimum.
 A real-time operating system must be able to assume that
scheduling overhead is restricted to a certain time.
27
4.Scheduling in Symbian OS
• It is a mobile phone operating system that is
intended to have the functionality of a general-
purpose operating system.
• It can load arbitrary code and execute it at run time;
• It can interact with users through applications.
• At the same time, the operating system must
support real-time functionality, especially where
communication functions are concerned.
▫ Because of the real-time requirements, Symbian OS is
implemented as a real-time operating system.
28
4.Scheduling in Symbian OS contd…
• It is built to run on multiple phone platforms,
without specialized hardware, so the operating
system is considered to be a soft real-time
system.
• It needs enough real-time capabilities to run the
protocols for mobile protocol stacks, such as
GSM and 3G.
29
4.Scheduling in Symbian OS contd…
• The combination of general-purpose functionality with
real-time system requirements means that the best
choice for implementation is a system that uses a static,
monotonic scheduling strategy, augmented by time
slices.
• Static, monotonic scheduling is a simple strategy to
use-
▫ It organizes processes with the shortest deadline first
and the introduction of time slices means that
processes with the same deadline (or no deadline) can
be assigned time slices and scheduling using a
priority-scheduling scheme.
▫ There are 64 levels of priority in Symbian OS.
30
4.Scheduling in Symbian OS contd…
• As we discussed before, a key to soft real-time
performance is predictable execution time.
• If an operating system can predict how long a
process will run, then a static, monotonic
scheduling strategy will work, since it makes
some big assumptions about run time.
• Predicting execution time is based on the
process and several system characteristics.
31
4.Scheduling in Symbian OS contd…
• There are several important characteristics that must be
predictable, including:
• latency times: an important benchmark is the latency of
handling interrupts: the time from an interrupt to a user
thread and from an interrupt to a kernel thread.
• the time to get information about processes: for example, the
time it takes to find the highest priority thread in the ready
state.
• the time to move threads between queues and the CPU:
manipulating scheduling queues – for example, moving
processes to and from the ready queue – must be bounded.
▫ This functionality is used all the time and it must have a bound
on it or the system cannot predict performance.
• Predicting these quantities is important and is reflected in the
design of the scheduler.
32
35

More Related Content

What's hot (20)

Kubernetes 101
Kubernetes 101Kubernetes 101
Kubernetes 101
 
Introduction to OpenMP
Introduction to OpenMPIntroduction to OpenMP
Introduction to OpenMP
 
Terraform Best Practices - DevOps Unicorns 2019
Terraform Best Practices - DevOps Unicorns 2019Terraform Best Practices - DevOps Unicorns 2019
Terraform Best Practices - DevOps Unicorns 2019
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 
Kali linux os
Kali linux osKali linux os
Kali linux os
 
DevOps and Tools
DevOps and ToolsDevOps and Tools
DevOps and Tools
 
Linux Preempt-RT Internals
Linux Preempt-RT InternalsLinux Preempt-RT Internals
Linux Preempt-RT Internals
 
SFO15-302: Energy Aware Scheduling: Progress Update
SFO15-302: Energy Aware Scheduling: Progress UpdateSFO15-302: Energy Aware Scheduling: Progress Update
SFO15-302: Energy Aware Scheduling: Progress Update
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 
Linux Programming
Linux ProgrammingLinux Programming
Linux Programming
 
Open source software
Open source software Open source software
Open source software
 
Linux basics
Linux basicsLinux basics
Linux basics
 
DevOps for beginners
DevOps for beginnersDevOps for beginners
DevOps for beginners
 
Automating linux network performance testing
Automating linux network performance testingAutomating linux network performance testing
Automating linux network performance testing
 
Linux scheduler
Linux schedulerLinux scheduler
Linux scheduler
 
Qnx os
Qnx osQnx os
Qnx os
 
Kali Linux
Kali LinuxKali Linux
Kali Linux
 
Best practices for agile design
Best practices for agile designBest practices for agile design
Best practices for agile design
 
Kubernetes #1 intro
Kubernetes #1   introKubernetes #1   intro
Kubernetes #1 intro
 
Microservices Network Architecture 101
Microservices Network Architecture 101Microservices Network Architecture 101
Microservices Network Architecture 101
 

Viewers also liked

Symbian Operating system
Symbian Operating systemSymbian Operating system
Symbian Operating systemPravin Shinde
 
Symbian mobile operating system ppt
Symbian mobile operating system pptSymbian mobile operating system ppt
Symbian mobile operating system pptDevesh Singh
 
Symbian OS - Communication And Messaging
Symbian OS - Communication And MessagingSymbian OS - Communication And Messaging
Symbian OS - Communication And MessagingAndreas Jakl
 
Communication in Symbian OS
Communication in Symbian OSCommunication in Symbian OS
Communication in Symbian OSquasar_knowledge
 
Google chrome os
Google chrome osGoogle chrome os
Google chrome osdevaj kumar
 
Chrome OS Observation
Chrome OS ObservationChrome OS Observation
Chrome OS ObservationChamp Yen
 
Chrome OS: The Stateless Operating System
Chrome OS: The Stateless Operating SystemChrome OS: The Stateless Operating System
Chrome OS: The Stateless Operating SystemChatchai Wangwiwattana
 
Google chrome os
Google chrome osGoogle chrome os
Google chrome osakoyena
 
Symbian Os Introduction
Symbian Os IntroductionSymbian Os Introduction
Symbian Os IntroductionDeepak Rathi
 
Symbian OS - GUI Architectures
Symbian OS - GUI ArchitecturesSymbian OS - GUI Architectures
Symbian OS - GUI ArchitecturesAndreas Jakl
 
Introduction To Google Chrome Os
Introduction To Google Chrome OsIntroduction To Google Chrome Os
Introduction To Google Chrome OsSaurabh Jinturkar
 

Viewers also liked (20)

Symbian Operating system
Symbian Operating systemSymbian Operating system
Symbian Operating system
 
Symbian OS
Symbian OSSymbian OS
Symbian OS
 
Symbian mobile operating system ppt
Symbian mobile operating system pptSymbian mobile operating system ppt
Symbian mobile operating system ppt
 
Symbian OS - Communication And Messaging
Symbian OS - Communication And MessagingSymbian OS - Communication And Messaging
Symbian OS - Communication And Messaging
 
Communication in Symbian OS
Communication in Symbian OSCommunication in Symbian OS
Communication in Symbian OS
 
Google chrome os
Google chrome osGoogle chrome os
Google chrome os
 
Chrome OS Observation
Chrome OS ObservationChrome OS Observation
Chrome OS Observation
 
Chrome OS: The Stateless Operating System
Chrome OS: The Stateless Operating SystemChrome OS: The Stateless Operating System
Chrome OS: The Stateless Operating System
 
Google chrome os
Google chrome osGoogle chrome os
Google chrome os
 
Google chrome
Google chromeGoogle chrome
Google chrome
 
Process management
Process managementProcess management
Process management
 
Google Chrome OS
Google Chrome OSGoogle Chrome OS
Google Chrome OS
 
Symbian OS
Symbian  OS Symbian  OS
Symbian OS
 
Symbian os
Symbian osSymbian os
Symbian os
 
Symbian Os Introduction
Symbian Os IntroductionSymbian Os Introduction
Symbian Os Introduction
 
Chrome os
Chrome os Chrome os
Chrome os
 
Symbian OS - GUI Architectures
Symbian OS - GUI ArchitecturesSymbian OS - GUI Architectures
Symbian OS - GUI Architectures
 
Google chrome OS
Google chrome OSGoogle chrome OS
Google chrome OS
 
Introduction To Google Chrome Os
Introduction To Google Chrome OsIntroduction To Google Chrome Os
Introduction To Google Chrome Os
 
Symbian OS
Symbian OSSymbian OS
Symbian OS
 

Similar to Scheduling in symbian os

scheduling Uni processor Long-term .ppt
scheduling  Uni processor Long-term .pptscheduling  Uni processor Long-term .ppt
scheduling Uni processor Long-term .pptSaba651353
 
Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.Shreya Kumar
 
Scheduling Definition, objectives and types
Scheduling Definition, objectives and types Scheduling Definition, objectives and types
Scheduling Definition, objectives and types Maitree Patel
 
Round Robin Algorithm.pptx
Round Robin Algorithm.pptxRound Robin Algorithm.pptx
Round Robin Algorithm.pptxSanad Bhowmik
 
In computing, scheduling is the action .
In computing, scheduling is the action .In computing, scheduling is the action .
In computing, scheduling is the action .nathansel1
 
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptxCPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptxTSha7
 
Real time Scheduling in Operating System for Msc CS
Real time Scheduling in Operating System for Msc CSReal time Scheduling in Operating System for Msc CS
Real time Scheduling in Operating System for Msc CSThanveen
 
operating system (1).pdf
operating system (1).pdfoperating system (1).pdf
operating system (1).pdfAliyanAbbas1
 
May14ProcessScheduling.ppt
May14ProcessScheduling.pptMay14ProcessScheduling.ppt
May14ProcessScheduling.pptansariparveen06
 
Lecture 4 - Process Scheduling (1).pptx
Lecture 4 - Process Scheduling (1).pptxLecture 4 - Process Scheduling (1).pptx
Lecture 4 - Process Scheduling (1).pptxAmanuelmergia
 
Lecture 4 - Process Scheduling.pptx
Lecture 4 - Process Scheduling.pptxLecture 4 - Process Scheduling.pptx
Lecture 4 - Process Scheduling.pptxAmanuelmergia
 

Similar to Scheduling in symbian os (20)

ch_scheduling (1).ppt
ch_scheduling (1).pptch_scheduling (1).ppt
ch_scheduling (1).ppt
 
Lecture 4 process cpu scheduling
Lecture 4   process cpu schedulingLecture 4   process cpu scheduling
Lecture 4 process cpu scheduling
 
Section05 scheduling
Section05 schedulingSection05 scheduling
Section05 scheduling
 
CPU Scheduling Part-III.pdf
CPU Scheduling Part-III.pdfCPU Scheduling Part-III.pdf
CPU Scheduling Part-III.pdf
 
scheduling Uni processor Long-term .ppt
scheduling  Uni processor Long-term .pptscheduling  Uni processor Long-term .ppt
scheduling Uni processor Long-term .ppt
 
CPU Scheduling Part-I.pdf
CPU Scheduling Part-I.pdfCPU Scheduling Part-I.pdf
CPU Scheduling Part-I.pdf
 
Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.Process scheduling in Light weight weight and Heavy weight processes.
Process scheduling in Light weight weight and Heavy weight processes.
 
Scheduling Definition, objectives and types
Scheduling Definition, objectives and types Scheduling Definition, objectives and types
Scheduling Definition, objectives and types
 
Round Robin Algorithm.pptx
Round Robin Algorithm.pptxRound Robin Algorithm.pptx
Round Robin Algorithm.pptx
 
In computing, scheduling is the action .
In computing, scheduling is the action .In computing, scheduling is the action .
In computing, scheduling is the action .
 
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptxCPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
CPU Scheduling Criteria CPU Scheduling Criteria (1).pptx
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
 
Osy ppt - Copy.pptx
Osy ppt - Copy.pptxOsy ppt - Copy.pptx
Osy ppt - Copy.pptx
 
Real time Scheduling in Operating System for Msc CS
Real time Scheduling in Operating System for Msc CSReal time Scheduling in Operating System for Msc CS
Real time Scheduling in Operating System for Msc CS
 
operating system (1).pdf
operating system (1).pdfoperating system (1).pdf
operating system (1).pdf
 
May14ProcessScheduling.ppt
May14ProcessScheduling.pptMay14ProcessScheduling.ppt
May14ProcessScheduling.ppt
 
pscheduling.ppt
pscheduling.pptpscheduling.ppt
pscheduling.ppt
 
Lecture 4 - Process Scheduling (1).pptx
Lecture 4 - Process Scheduling (1).pptxLecture 4 - Process Scheduling (1).pptx
Lecture 4 - Process Scheduling (1).pptx
 
Lecture 4 - Process Scheduling.pptx
Lecture 4 - Process Scheduling.pptxLecture 4 - Process Scheduling.pptx
Lecture 4 - Process Scheduling.pptx
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
 

Recently uploaded

KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086anil_gaur
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...soginsider
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 

Recently uploaded (20)

Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 

Scheduling in symbian os

  • 2. 10 3. Scheduling Strategies • The goal of any scheduling strategy is to maximize CPU usage and throughput while minimizing turnaround time, waiting time, and response time. • Here we focus on the problems of deciding which process should use the CPU and when a process should be removed from using the CPU. • Scheduling Strategies: 1. First-Come-First-Served Strategy 2. Shortest-Job-First Strategy 3. Round-Robin Strategy 4. Priority Strategy 5. Multiple-Queuing Strategy 6. Real-time Strategy 10
  • 3. 11 1. First-Come-First-Served Strategy • Provides easiest way to schedule a CPU • It allows the first process that requests a CPU to use the CPU until the process is completed. • When one process is using the CPU, other processes that need the CPU simply queue up in the ready queue. • This allows the head of the ready queue to be used as the next process to be scheduled. • It is non pre-emptive. Processes are removed from the CPU only when they are in the waiting state or they have terminated.
  • 4. 1. First-Come-First-Served Strategy contd… • Consider the following set of processes that arrive to use a CPU in the order stated: • An FCFS scheduler would schedule them as shown in Figure 5.1. 12 •Consider the following set of processes that arrive to use a CPU in the order stated: •The throughput of our imaginary system is 4 processes in 53 time units •the average waiting time is 28 time units.
  • 5. 1. First-Come-First-Served Strategy contd… • Consider a different ordering of processes. • In this situation, we can measure time in the following way: 13 •In this scenario, the throughput of our system is the same: 4 processes in 53 time units. • But the waiting time is much better: the average waiting time for this example is 9.5 time units.
  • 6. 1. First-Come-First-Served Strategy contd.. 14 •FCFS strategy does not guarantee minimal criteria and measures may vary substantially depending on process execution times and the order of execution. •Fairness issues hurt the consideration of this scheduling strategy. •FCFS is inherently unpredictable and may very likely produce unfair schedules.
  • 7. 2. Shortest-Job-First Strategy • If we always chose the process with the shortest running time first, it would seem that we could improve the measurements we are watching. • As an example, consider a new set of processes: 15
  • 8. 2. Shortest-Job-First Strategy contd… 16 •The shortest-job-first (SJF) scheduling strategy is illustrated in Figure given below •This ordering produces the following measurements: •This order of processing has an average wait time of 10.75 time units. •If we had used the FCFS strategy, the average waiting time would be 12.25 time units.
  • 9. 2. Shortest-Job-First Strategy contd… • While it is possible to prove that an SJF strategy is optimal for average times, the strategy has several issues. 1. it penalizes long processes simply for being long. 2. Secondly, it becomes possible to starve a process.  Starvation occurs when a process is waiting in the ready queue but never makes it to the running state. As long as processes enter the queue with running times shorter than it, that process is never run on the CPU. 17
  • 10. 3. Round-Robin Strategy • Both FCFS and SJF are usually used as non-pre- emptive strategies. However, we still have the criterion of fairness to consider. ▫ Fairness is a measure of how much time each process spends on the CPU. ▫ If we schedule processes to run to completion or we depend on processes to give up the CPU when they can, we can make measurements but we can make no statement about fairness. • Fairness can only be assured when we use a pre- emptive strategy. ▫ In a round-robin strategy, all processes are given the same time slice and are pre-empted and placed on the ready queue in the order they ran on the CPU. 18
  • 11. 3. Round-Robin Strategy contd… 19 • For example, consider the processes below: •Let’s say the time slice in this system is 5 time units. • A roundrobin scheduling strategy would produce a timeline like that shown in above Figure 5.4.
  • 12. 3. Round-Robin Strategy contd… • There is very little to manage about a round-robin strategy. ▫ The only variable in the scheme is the length of the time slice – the amount of time spent on the processor. ▫ Setting this time to be too short – say close to the time it takes to perform a context switch – is counterproductive. It lets the context-switching time dominate performance and lowers CPU efficiency. • However, making a time slice too long gets away from the benefits of a round-robin strategy. • Response time decreases for short requests. • A round-robin strategy puts all processes on an equal footing. 20
  • 13. 4. Priority Strategy • A priority-scheduling strategy takes into account that processes have different importance placed upon them. • In priority scheduling, the process in the ready queue with the highest priority is chosen to run. • This type of scheduling can be either pre- emptive or non-pre-emptive, as it is the choice of the next process that defines a priority- scheduling strategy. 21
  • 14. 4. Priority Strategy contd… • Priority scheduling makes certain requirements of the operating system. ▫ The operating system must employ the concept of process priority.  The priority is an attribute of a process that measures the importance of the process in relationship to others and allows the operating system to make decisions about scheduling and the amount of time to keep a process on a processor.  In a pre-emptive scheduling environment, process priority is a very useful attribute to assign to a process.  The priority of the process is usually given by a number, which is kept in the process’s PCB. 22
  • 15. 4. Priority Strategy contd… • It is usually required that the operating system be allowed to manipulate priorities somehow. ▫ Priorities are set by the user or the process creator but the operating system is usually allowed to change priorities dynamically. ▫ The operating system requires the ability to adjust the priority of such a process as it moves through its execution. • Priorities themselves usually take the form of numbers, quantities that can be easily compared by the operating system. • Microsoft Windows assigns values from 0 to 31; various Unix implementations assign negative as well as positive values to reflect user (negative) and system (positive) priority assignment. • As that shows, there is no general agreement on assigning priority values. 23
  • 16. 4. Priority Strategy contd… • example of priority scheduling. Let’s say that requests for the processor are made in the following order: 24 • For the purposes of this example, higher numbers mean higher priority
  • 17. 5. Multiple-Queuing Strategy • We have described priority scheduling as a matter of choice: choosing the process with the highest priority to schedule on the processor. ▫ In many operating systems, processes do not have unique priorities. There may be many processes with the same priority. ▫ Many system processes have the same high priority. This means that the scheduler is eventually going to have to choose between processes with the same priority. • Priority scheduling is often implemented with priority queues. • A priority queue holds processes of a certain priority value or range of values. 25
  • 18. 5. Multiple-Queuing Strategy contd… • The multiple-queuing scheduling strategy could even use multiple strategies: ▫ different scheduling strategies for different queues. ▫ Processes are  either permanently assigned to a specific queue, based on their characteristics upon entering the system,  Or they can move between queues, based on their changing characteristics as they are executed in the system. 26
  • 19. 6. Real-time Strategy • real-time systems can be classified as one of two different system types, each with different scheduling needs. ▫ Hard real-time systems guarantee that time constraints are met.  there is usually a specific amount of time that is specified along with the process-scheduling request.  The system guarantees that the process is run in the specified amount of time or that the process is not run at all. ▫ Soft real-time systems place a priority on time-critical processes and are less restrictive.  It do not guarantee performance; they give real-time processes favorable treatment and keep certain latency times to a minimum.  A real-time operating system must be able to assume that scheduling overhead is restricted to a certain time. 27
  • 20. 4.Scheduling in Symbian OS • It is a mobile phone operating system that is intended to have the functionality of a general- purpose operating system. • It can load arbitrary code and execute it at run time; • It can interact with users through applications. • At the same time, the operating system must support real-time functionality, especially where communication functions are concerned. ▫ Because of the real-time requirements, Symbian OS is implemented as a real-time operating system. 28
  • 21. 4.Scheduling in Symbian OS contd… • It is built to run on multiple phone platforms, without specialized hardware, so the operating system is considered to be a soft real-time system. • It needs enough real-time capabilities to run the protocols for mobile protocol stacks, such as GSM and 3G. 29
  • 22. 4.Scheduling in Symbian OS contd… • The combination of general-purpose functionality with real-time system requirements means that the best choice for implementation is a system that uses a static, monotonic scheduling strategy, augmented by time slices. • Static, monotonic scheduling is a simple strategy to use- ▫ It organizes processes with the shortest deadline first and the introduction of time slices means that processes with the same deadline (or no deadline) can be assigned time slices and scheduling using a priority-scheduling scheme. ▫ There are 64 levels of priority in Symbian OS. 30
  • 23. 4.Scheduling in Symbian OS contd… • As we discussed before, a key to soft real-time performance is predictable execution time. • If an operating system can predict how long a process will run, then a static, monotonic scheduling strategy will work, since it makes some big assumptions about run time. • Predicting execution time is based on the process and several system characteristics. 31
  • 24. 4.Scheduling in Symbian OS contd… • There are several important characteristics that must be predictable, including: • latency times: an important benchmark is the latency of handling interrupts: the time from an interrupt to a user thread and from an interrupt to a kernel thread. • the time to get information about processes: for example, the time it takes to find the highest priority thread in the ready state. • the time to move threads between queues and the CPU: manipulating scheduling queues – for example, moving processes to and from the ready queue – must be bounded. ▫ This functionality is used all the time and it must have a bound on it or the system cannot predict performance. • Predicting these quantities is important and is reflected in the design of the scheduler. 32
  • 25. 35