SlideShare a Scribd company logo
Data Structure
Scheduling:
 Task: Determine which process is allowed to
run •
 What are the objectives?
 Maximize
 CPU utilization.
 Throughput (tasks per unit of time)
 Minimize
 Turn around time (submission-to-completion)
 Waiting time (sum of times spend in ready
queue)
 Response time (production of first response)
Scheduling:
Fairness
Every task should be handled eventually (no starvation)
Tasks with similar characteristics should be treated
equally .
Who are the stake holders?(owner, user, system)
*Systems
*Batch systems
*Interactivesystems
*Real-timesystems
*Desktops
*Servers
Event Scheduling:
 Event scheduling is the activity of
finding a suitable time for an event such
as meeting, conference, trip, etc. It is an
important part of event planning that is
usually carried out at its beginning
stage. In general, event scheduling must
take into account what impact particular
dates of the event could have on the
success of the event.
Types of Scheduling
Long-term (admission scheduler,jobscheduler)
Decision to admit a process to system (into the
ready queue) .
Controls degree of multiprogramming .
Batch systems.
Medium-term(memory scheduler) :
Decision to put process image on disk vs. keep in
memory
Part of swapping mechanism –
Need to manage and control the degree of
multiprogramming
Types of Scheduling:
 Short-term(CPU scheduler):
 Decision which of the ready processes to
execute next
 Executes most frequently, executes when
an event occurs
 more processes,
 less CPU time,
 more I/O interleaving potential
 infrequent invocations
 second / minute range
When are scheduling decision
made?
Switch from running to waiting
Switch from running to ready
Switch from waiting to ready
On process termination
Preemptive vs. non-preemptive
 Non-preemptive scheduling :
Once in running state, process will continue.
Potential to monopolize the CPU.
May voluntarily yield the CPU.
Preemptive scheduling
Currently running process may be interrupted
by OS and put into ready state
Timer interrupts required (for IRP)
Incurs context switches
Should kernel code be
preemptive
or non-preemptive?
 Scheduling Criteria 1
 User-oriented
 Response time
 Elapsed time between submission of a
request and until there is an output
 Waiting time
 Total time process is spending in ready
queue Turnaround time
 Amount of time to execute a process, from
creation to exit
Scheduling Criteria 2:
 System-oriented
 Effective and efficient utilization of
CPU(s) Throughput
 Number of jobs executed per unit of time
•Often, conflicting goals
Scheduling Criteria 3
 •Performance related
 Quantitative
 Measurable, such as response time &
throughput
 Non-performance related
 Qualitative
 Predictability
 Proportionality
Criteria for each type of system
 Different “priorities” for different types of
systems
 •All Systems
 Fairness, give each process fair share of
CPU Balance, keep all system components
busy Enforce system-wide policies
 Batch
 non-preemptive policies, or preemptive
with long time quanta
 Throughput, turnaround, CPU utilization
Interactive:
 Preemptive is essential,
 Response time, proportionality (meet
user expectation)
 Real-time (hard & soft)
 Preemptive often not necessary for hard
real time systems
 Meeting deadlines (avoid loosing data),
predictability (avoid quality degradation,
e.g., in multimedia systems)
Optimization Criteria:
 Max.CPU utilization
 Max.throughput
 Min.turnaround time
 Min.waiting time
 Min.response time
CPU-I/O Burst Cycles:
 Processes typically consist of
 CPU bursts
 I/O bursts Duration and frequency of bursts
vary greatly from process to process
 CPU-bound few very long CPU bursts
 Number crunching tasks, image processing
 I/O-bound many short CPU bursts
 Maximum CPU utilization obtained with
multiprogramming and mixing CPU and I/O
bound tasks for maximal parallel resource
utilization
Scheduling Algorithm:
 First-Come, First-Served (FCFS)
Scheduling
 Suppose that the processes arrive in the
order: P1, P2, P3
 Waiting time for
 P1= 0;
 P2= 24;
 P3 = 27
 Average waiting time: (0 + 24 + 27)/3 = 17
Scheduling Algorithm:
 Suppose that the processes arrive in the
order P2, P3, P1.
 •Waiting time for P1 =6;
 P 2= 0;
 P3 = 3
 Average waiting time: (6 + 0 + 3)/3 = 3
 Much better than previous case.
Shortest-Job-First (SJF)
Scheduling
 Associate with each task the length of its next
CPU burst.
 Use these lengths to schedule the task with the
shortest time.
 An expected next burst length
 Two schemes:
 non-preemptive
 once CPU given to the process it cannot be
preempted until completes its CPU burst.
 Preemptive
 Shortest-Remaining-Time-First (SRTF).
 SJF is optimal
Shortest Jobs First Scheduling:
 Short tasks jump ahead of longer ones.
 May need to abort tasks exceeding their
burst length expectations.
 Long running tasks may be starved.
 Burst length could be user/application
provided.
 Could be based on past execution
pattern of task.
Priority Scheduling:
 A priority number(integer) is associated with
each process
 The CPU is allocated to the process with the
highest priority(smallest integer ≡highest
priority).
 Preemptive vs. non preemptive
 SJF is priority scheduling where priority is the
predicted next CPU burst time.
 Problem: Starvation–low priority processes
may never execute.
 Solution: Aging–as time progresses
increase/decrease the priority of tasks
Round Robin:
 Each process gets a small unit of CPU time
Called a time quantum
 usually 10-100 milliseconds
 preempted and added to the end of the
ready queue.
 N processes in the ready queue and time
quantum q
 each process gets 1/n of the CPU time in
chunks of at most qtime units at once.
 No process waits more than (n-1)q time
units.
Round Robin:
 Performance
 Q large ⇒FIFO
 q small ⇒q must be large with respect to
context switch, otherwise overhead is
too high.
 No starvation, everybody gets to run
 Choice of length of time slice/quantum is
crucial.

More Related Content

What's hot

WBS PROJECT
WBS PROJECTWBS PROJECT
WBS PROJECT
nurliyana Bakar
 
Business continuity management (case study)
Business continuity management (case study)Business continuity management (case study)
Business continuity management (case study)
Wissam Abdel Baki
 
Risk management(software engineering)
Risk management(software engineering)Risk management(software engineering)
Risk management(software engineering)
Priya Tomar
 
Project Management Control
Project Management ControlProject Management Control
Project Management Control
ahmad bassiouny
 
Formal Approaches to SQA.pptx
Formal Approaches to SQA.pptxFormal Approaches to SQA.pptx
Formal Approaches to SQA.pptx
KarthigaiSelviS3
 
Sports and Special Event Security Planning: Best Practices
Sports and Special Event Security Planning: Best PracticesSports and Special Event Security Planning: Best Practices
Sports and Special Event Security Planning: Best Practices
National Center for Campus Public Safety
 
Project Management Methodology
Project Management MethodologyProject Management Methodology
Project Management Methodology
Mohammed Al-Taee
 
Introduction to Project Management
Introduction to Project ManagementIntroduction to Project Management
Introduction to Project Management
Waleed Elnaggar
 
Chap2 RE processes
Chap2 RE processesChap2 RE processes
Chap2 RE processes
Ian Sommerville
 
Project Scheduling, Planning and Risk Management
Project Scheduling, Planning and Risk ManagementProject Scheduling, Planning and Risk Management
Project Scheduling, Planning and Risk Management
university of education,Lahore
 
Introduction to risk management
Introduction to risk managementIntroduction to risk management
Introduction to risk management
s. Akhlaque
 
Operating system security
Operating system securityOperating system security
Operating system security
Sarmad Makhdoom
 
System design
System designSystem design
System design
Gheethu Joy
 
Class 1: Introduction - What is an Operating System?
Class 1: Introduction - What is an Operating System?Class 1: Introduction - What is an Operating System?
Class 1: Introduction - What is an Operating System?
David Evans
 
Project risk management
Project risk managementProject risk management
Project risk management
Aswin prakash i , Xantus Technologies
 
Software Engineering - Ch1
Software Engineering - Ch1Software Engineering - Ch1
Software Engineering - Ch1
Siddharth Ayer
 
Protoytyping Model
Protoytyping ModelProtoytyping Model
Protoytyping Model
university of education,Lahore
 
Risk identification
Risk identificationRisk identification
Risk identification
murukkada
 
Project Management - Critical path method
Project Management - Critical path methodProject Management - Critical path method
Project Management - Critical path method
NR Computer Learning Center
 
Project Risk Management
Project Risk ManagementProject Risk Management

What's hot (20)

WBS PROJECT
WBS PROJECTWBS PROJECT
WBS PROJECT
 
Business continuity management (case study)
Business continuity management (case study)Business continuity management (case study)
Business continuity management (case study)
 
Risk management(software engineering)
Risk management(software engineering)Risk management(software engineering)
Risk management(software engineering)
 
Project Management Control
Project Management ControlProject Management Control
Project Management Control
 
Formal Approaches to SQA.pptx
Formal Approaches to SQA.pptxFormal Approaches to SQA.pptx
Formal Approaches to SQA.pptx
 
Sports and Special Event Security Planning: Best Practices
Sports and Special Event Security Planning: Best PracticesSports and Special Event Security Planning: Best Practices
Sports and Special Event Security Planning: Best Practices
 
Project Management Methodology
Project Management MethodologyProject Management Methodology
Project Management Methodology
 
Introduction to Project Management
Introduction to Project ManagementIntroduction to Project Management
Introduction to Project Management
 
Chap2 RE processes
Chap2 RE processesChap2 RE processes
Chap2 RE processes
 
Project Scheduling, Planning and Risk Management
Project Scheduling, Planning and Risk ManagementProject Scheduling, Planning and Risk Management
Project Scheduling, Planning and Risk Management
 
Introduction to risk management
Introduction to risk managementIntroduction to risk management
Introduction to risk management
 
Operating system security
Operating system securityOperating system security
Operating system security
 
System design
System designSystem design
System design
 
Class 1: Introduction - What is an Operating System?
Class 1: Introduction - What is an Operating System?Class 1: Introduction - What is an Operating System?
Class 1: Introduction - What is an Operating System?
 
Project risk management
Project risk managementProject risk management
Project risk management
 
Software Engineering - Ch1
Software Engineering - Ch1Software Engineering - Ch1
Software Engineering - Ch1
 
Protoytyping Model
Protoytyping ModelProtoytyping Model
Protoytyping Model
 
Risk identification
Risk identificationRisk identification
Risk identification
 
Project Management - Critical path method
Project Management - Critical path methodProject Management - Critical path method
Project Management - Critical path method
 
Project Risk Management
Project Risk ManagementProject Risk Management
Project Risk Management
 

Viewers also liked

Presentation on scheduling
Presentation on schedulingPresentation on scheduling
Presentation on scheduling
Gunjan Lal
 
Event Planning for DUMMIES
Event Planning for DUMMIES Event Planning for DUMMIES
Event Planning for DUMMIES
Phillip Edwards
 
ONTAP - Event Planning
ONTAP - Event PlanningONTAP - Event Planning
ONTAP - Event Planning
WRDSB
 
HOW-TO Guide for Event Planning
HOW-TO Guide for Event PlanningHOW-TO Guide for Event Planning
HOW-TO Guide for Event Planning
Jasmine Stewart
 
21 ways to boost your event
21 ways to boost your event21 ways to boost your event
21 ways to boost your event
Cyriel Kortleven
 
Event planning powerpoint
Event planning powerpointEvent planning powerpoint
Event planning powerpoint
katelandturner
 
Event management
Event managementEvent management
Event management
AIESEC India
 

Viewers also liked (7)

Presentation on scheduling
Presentation on schedulingPresentation on scheduling
Presentation on scheduling
 
Event Planning for DUMMIES
Event Planning for DUMMIES Event Planning for DUMMIES
Event Planning for DUMMIES
 
ONTAP - Event Planning
ONTAP - Event PlanningONTAP - Event Planning
ONTAP - Event Planning
 
HOW-TO Guide for Event Planning
HOW-TO Guide for Event PlanningHOW-TO Guide for Event Planning
HOW-TO Guide for Event Planning
 
21 ways to boost your event
21 ways to boost your event21 ways to boost your event
21 ways to boost your event
 
Event planning powerpoint
Event planning powerpointEvent planning powerpoint
Event planning powerpoint
 
Event management
Event managementEvent management
Event management
 

Similar to Event Scheduling

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
Thanveen
 
Operating System Scheduling
Operating System SchedulingOperating System Scheduling
Operating System Scheduling
Vishnu Prasad
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
Karthick Sekar
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
Riya Choudhary
 
ESC UNIT 3.ppt
ESC UNIT 3.pptESC UNIT 3.ppt
ESC UNIT 3.ppt
Sarvesh Warjurkar
 
ERTS UNIT 5.pptx
ERTS UNIT 5.pptxERTS UNIT 5.pptx
ERTS UNIT 5.pptx
Pavithra525349
 
Chapter 2 (Part 2)
Chapter 2 (Part 2) Chapter 2 (Part 2)
Chapter 2 (Part 2)
rohassanie
 
Scheduling
SchedulingScheduling
Operating System.pptx
Operating System.pptxOperating System.pptx
Operating System.pptx
VanshikaRajput33
 
ch_scheduling (1).ppt
ch_scheduling (1).pptch_scheduling (1).ppt
ch_scheduling (1).ppt
Farhanahmad540205
 
Schudling os presentaion
Schudling os presentaionSchudling os presentaion
Schudling os presentaion
inayat khan
 
Survey of Real Time Scheduling Algorithms
Survey of Real Time Scheduling AlgorithmsSurvey of Real Time Scheduling Algorithms
Survey of Real Time Scheduling Algorithms
IOSR Journals
 
Process Scheduling
Process SchedulingProcess Scheduling
Process Scheduling
vampugani
 
CPU Scheduling
CPU SchedulingCPU Scheduling
CPU Scheduling
amadayshwan
 
CPU scheduling in Operating System Explanation
CPU scheduling in Operating System ExplanationCPU scheduling in Operating System Explanation
CPU scheduling in Operating System Explanation
AnitaSofiaKeyser
 
May14ProcessScheduling.ppt
May14ProcessScheduling.pptMay14ProcessScheduling.ppt
May14ProcessScheduling.ppt
ansariparveen06
 
pscheduling.ppt
pscheduling.pptpscheduling.ppt
pscheduling.ppt
ansariparveen06
 
Scheduling Definition, objectives and types
Scheduling Definition, objectives and types Scheduling Definition, objectives and types
Scheduling Definition, objectives and types
Maitree Patel
 
RTOS
RTOSRTOS
Real time os(suga)
Real time os(suga) Real time os(suga)
Real time os(suga)
Nagarajan
 

Similar to Event Scheduling (20)

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 Scheduling
Operating System SchedulingOperating System Scheduling
Operating System Scheduling
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
ESC UNIT 3.ppt
ESC UNIT 3.pptESC UNIT 3.ppt
ESC UNIT 3.ppt
 
ERTS UNIT 5.pptx
ERTS UNIT 5.pptxERTS UNIT 5.pptx
ERTS UNIT 5.pptx
 
Chapter 2 (Part 2)
Chapter 2 (Part 2) Chapter 2 (Part 2)
Chapter 2 (Part 2)
 
Scheduling
SchedulingScheduling
Scheduling
 
Operating System.pptx
Operating System.pptxOperating System.pptx
Operating System.pptx
 
ch_scheduling (1).ppt
ch_scheduling (1).pptch_scheduling (1).ppt
ch_scheduling (1).ppt
 
Schudling os presentaion
Schudling os presentaionSchudling os presentaion
Schudling os presentaion
 
Survey of Real Time Scheduling Algorithms
Survey of Real Time Scheduling AlgorithmsSurvey of Real Time Scheduling Algorithms
Survey of Real Time Scheduling Algorithms
 
Process Scheduling
Process SchedulingProcess Scheduling
Process Scheduling
 
CPU Scheduling
CPU SchedulingCPU Scheduling
CPU Scheduling
 
CPU scheduling in Operating System Explanation
CPU scheduling in Operating System ExplanationCPU scheduling in Operating System Explanation
CPU scheduling in Operating System Explanation
 
May14ProcessScheduling.ppt
May14ProcessScheduling.pptMay14ProcessScheduling.ppt
May14ProcessScheduling.ppt
 
pscheduling.ppt
pscheduling.pptpscheduling.ppt
pscheduling.ppt
 
Scheduling Definition, objectives and types
Scheduling Definition, objectives and types Scheduling Definition, objectives and types
Scheduling Definition, objectives and types
 
RTOS
RTOSRTOS
RTOS
 
Real time os(suga)
Real time os(suga) Real time os(suga)
Real time os(suga)
 

Recently uploaded

Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
safelyiotech
 
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSISDECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
Tier1 app
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
gapen1
 
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
XfilesPro
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
Alberto Brandolini
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
ToXSL Technologies
 
UI5con 2024 - Bring Your Own Design System
UI5con 2024 - Bring Your Own Design SystemUI5con 2024 - Bring Your Own Design System
UI5con 2024 - Bring Your Own Design System
Peter Muessig
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
Yara Milbes
 
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
The Third Creative Media
 
Project Management: The Role of Project Dashboards.pdf
Project Management: The Role of Project Dashboards.pdfProject Management: The Role of Project Dashboards.pdf
Project Management: The Role of Project Dashboards.pdf
Karya Keeper
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
Green Software Development
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
Patrick Weigel
 
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLESINTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
anfaltahir1010
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
VALiNTRY360
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
Bert Jan Schrijver
 
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom KittEnhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Peter Caitens
 
Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
sjcobrien
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
brainerhub1
 
Preparing Non - Technical Founders for Engaging a Tech Agency
Preparing Non - Technical Founders for Engaging  a  Tech AgencyPreparing Non - Technical Founders for Engaging  a  Tech Agency
Preparing Non - Technical Founders for Engaging a Tech Agency
ISH Technologies
 
E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
Hornet Dynamics
 

Recently uploaded (20)

Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
 
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSISDECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
 
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
 
UI5con 2024 - Bring Your Own Design System
UI5con 2024 - Bring Your Own Design SystemUI5con 2024 - Bring Your Own Design System
UI5con 2024 - Bring Your Own Design System
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
 
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
 
Project Management: The Role of Project Dashboards.pdf
Project Management: The Role of Project Dashboards.pdfProject Management: The Role of Project Dashboards.pdf
Project Management: The Role of Project Dashboards.pdf
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
 
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLESINTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
 
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom KittEnhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
 
Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
 
Preparing Non - Technical Founders for Engaging a Tech Agency
Preparing Non - Technical Founders for Engaging  a  Tech AgencyPreparing Non - Technical Founders for Engaging  a  Tech Agency
Preparing Non - Technical Founders for Engaging a Tech Agency
 
E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
 

Event Scheduling

  • 2. Scheduling:  Task: Determine which process is allowed to run •  What are the objectives?  Maximize  CPU utilization.  Throughput (tasks per unit of time)  Minimize  Turn around time (submission-to-completion)  Waiting time (sum of times spend in ready queue)  Response time (production of first response)
  • 3. Scheduling: Fairness Every task should be handled eventually (no starvation) Tasks with similar characteristics should be treated equally . Who are the stake holders?(owner, user, system) *Systems *Batch systems *Interactivesystems *Real-timesystems *Desktops *Servers
  • 4. Event Scheduling:  Event scheduling is the activity of finding a suitable time for an event such as meeting, conference, trip, etc. It is an important part of event planning that is usually carried out at its beginning stage. In general, event scheduling must take into account what impact particular dates of the event could have on the success of the event.
  • 5. Types of Scheduling Long-term (admission scheduler,jobscheduler) Decision to admit a process to system (into the ready queue) . Controls degree of multiprogramming . Batch systems. Medium-term(memory scheduler) : Decision to put process image on disk vs. keep in memory Part of swapping mechanism – Need to manage and control the degree of multiprogramming
  • 6. Types of Scheduling:  Short-term(CPU scheduler):  Decision which of the ready processes to execute next  Executes most frequently, executes when an event occurs  more processes,  less CPU time,  more I/O interleaving potential  infrequent invocations  second / minute range
  • 7. When are scheduling decision made? Switch from running to waiting Switch from running to ready Switch from waiting to ready On process termination
  • 8. Preemptive vs. non-preemptive  Non-preemptive scheduling : Once in running state, process will continue. Potential to monopolize the CPU. May voluntarily yield the CPU. Preemptive scheduling Currently running process may be interrupted by OS and put into ready state Timer interrupts required (for IRP) Incurs context switches
  • 9. Should kernel code be preemptive or non-preemptive?  Scheduling Criteria 1  User-oriented  Response time  Elapsed time between submission of a request and until there is an output  Waiting time  Total time process is spending in ready queue Turnaround time  Amount of time to execute a process, from creation to exit
  • 10. Scheduling Criteria 2:  System-oriented  Effective and efficient utilization of CPU(s) Throughput  Number of jobs executed per unit of time •Often, conflicting goals
  • 11. Scheduling Criteria 3  •Performance related  Quantitative  Measurable, such as response time & throughput  Non-performance related  Qualitative  Predictability  Proportionality
  • 12. Criteria for each type of system  Different “priorities” for different types of systems  •All Systems  Fairness, give each process fair share of CPU Balance, keep all system components busy Enforce system-wide policies  Batch  non-preemptive policies, or preemptive with long time quanta  Throughput, turnaround, CPU utilization
  • 13. Interactive:  Preemptive is essential,  Response time, proportionality (meet user expectation)  Real-time (hard & soft)  Preemptive often not necessary for hard real time systems  Meeting deadlines (avoid loosing data), predictability (avoid quality degradation, e.g., in multimedia systems)
  • 14. Optimization Criteria:  Max.CPU utilization  Max.throughput  Min.turnaround time  Min.waiting time  Min.response time
  • 15. CPU-I/O Burst Cycles:  Processes typically consist of  CPU bursts  I/O bursts Duration and frequency of bursts vary greatly from process to process  CPU-bound few very long CPU bursts  Number crunching tasks, image processing  I/O-bound many short CPU bursts  Maximum CPU utilization obtained with multiprogramming and mixing CPU and I/O bound tasks for maximal parallel resource utilization
  • 16. Scheduling Algorithm:  First-Come, First-Served (FCFS) Scheduling  Suppose that the processes arrive in the order: P1, P2, P3  Waiting time for  P1= 0;  P2= 24;  P3 = 27  Average waiting time: (0 + 24 + 27)/3 = 17
  • 17. Scheduling Algorithm:  Suppose that the processes arrive in the order P2, P3, P1.  •Waiting time for P1 =6;  P 2= 0;  P3 = 3  Average waiting time: (6 + 0 + 3)/3 = 3  Much better than previous case.
  • 18. Shortest-Job-First (SJF) Scheduling  Associate with each task the length of its next CPU burst.  Use these lengths to schedule the task with the shortest time.  An expected next burst length  Two schemes:  non-preemptive  once CPU given to the process it cannot be preempted until completes its CPU burst.  Preemptive  Shortest-Remaining-Time-First (SRTF).  SJF is optimal
  • 19. Shortest Jobs First Scheduling:  Short tasks jump ahead of longer ones.  May need to abort tasks exceeding their burst length expectations.  Long running tasks may be starved.  Burst length could be user/application provided.  Could be based on past execution pattern of task.
  • 20. Priority Scheduling:  A priority number(integer) is associated with each process  The CPU is allocated to the process with the highest priority(smallest integer ≡highest priority).  Preemptive vs. non preemptive  SJF is priority scheduling where priority is the predicted next CPU burst time.  Problem: Starvation–low priority processes may never execute.  Solution: Aging–as time progresses increase/decrease the priority of tasks
  • 21. Round Robin:  Each process gets a small unit of CPU time Called a time quantum  usually 10-100 milliseconds  preempted and added to the end of the ready queue.  N processes in the ready queue and time quantum q  each process gets 1/n of the CPU time in chunks of at most qtime units at once.  No process waits more than (n-1)q time units.
  • 22. Round Robin:  Performance  Q large ⇒FIFO  q small ⇒q must be large with respect to context switch, otherwise overhead is too high.  No starvation, everybody gets to run  Choice of length of time slice/quantum is crucial.