Fixed-Priority Servers

Slides:



Advertisements
Similar presentations
Washington WASHINGTON UNIVERSITY IN ST LOUIS Real-Time: Periodic Tasks Fred Kuhns Applied Research Laboratory Computer Science Washington University.
Advertisements

Priority Inheritance and Priority Ceiling Protocols
Scheduling Algorithms for Multiprogramming in a Hard Real-Time Environment (then and now) EECS 750 – Spring 2006 Presented by: Shane Santner, TJ Staley,
CSE 522 Real-Time Scheduling (4)
Chapter 5 – Fixed-Priority Servers Typical Real-Time systems are hybrids characterized by: periodic tasks that execute critical control activities aperiodic.
Real-Time Systems Scheduling Tool Developed by Daniel Ghiringhelli Advisor: Professor Jiacun Wang December 19, 2005.
From HRT-HOOD to ADA95 Real-Time Systems Lecture 5 Copyright, 2001 © Adam Czajka.
Tasks Periodic The period is the amount of time between each iteration of a regularly repeated task Time driven The task is automatically activated by.
Module 2 Priority Driven Scheduling of Periodic Task
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 19 Scheduling IV.
Sporadic Server Scheduling in Linux Theory vs. Practice Mark Stanovich Theodore Baker Andy Wang.
Chapter 6 Dynamic Priority Servers
CS 3013 & CS 502 Summer 2006 Scheduling1 The art and science of allocating the CPU and other resources to processes.
Embedded Systems Exercise 3: Scheduling Real-Time Periodic and Mixed Task Sets 18. May 2005 Alexander Maxiaguine.
Chapter 5: CPU Scheduling
Wk 2 – Scheduling 1 CS502 Spring 2006 Scheduling The art and science of allocating the CPU and other resources to processes.
Spring 2002Real-Time Systems (Shin) Rate Monotonic Analysis Assumptions – A1. No nonpreemptible parts in a task, and negligible preemption cost –
Real-Time Operating System Chapter – 8 Embedded System: An integrated approach.
Chapter 4 – Periodic Task Scheduling In many real-time systems periodic tasks dominate the demand. Three classic periodic task scheduling algorithms: –
Chapter 1 Embedded And Real-Time System Department of Computer Science Hsu Hao Chen Professor Hsung-Pin Chang.
New Schedulability Tests for Real- Time task sets scheduled by Deadline Monotonic on Multiprocessors Marko Bertogna, Michele Cirinei, Giuseppe Lipari Scuola.
Operating System Concepts and Techniques Lecture 5 Scheduling-1 M. Naghibzadeh Reference M. Naghibzadeh, Operating System Concepts and Techniques, First.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Combined Scheduling of Periodic and Aperiodic Tasks.
Scheduling Aperiodic and Sporadic Jobs
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 6: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 31 – Multimedia OS (Part 1) Klara Nahrstedt Spring 2011.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
Real-Time Scheduling CS 3204 – Operating Systems Lecture 20 3/3/2006 Shahrooz Feizabadi.
Object-Oriented Design and Implementation of the OE-Scheduler in Real-time Environments Ilhyun Lee Cherry K. Owen Haesun K. Lee The University of Texas.
1 11/29/2015 Chapter 6: CPU Scheduling l Basic Concepts l Scheduling Criteria l Scheduling Algorithms l Multiple-Processor Scheduling l Real-Time Scheduling.
Cpr E 308 Spring 2005 Process Scheduling Basic Question: Which process goes next? Personal Computers –Few processes, interactive, low response time Batch.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
KUKUM Real Time System 1/21 Module 2 Real Time System Scheduling Lecture 05.
ITFN 2601 Introduction to Operating Systems Lecture 4 Scheduling.
Real Time Operating Systems Schedulability - Part 2 Course originally developed by Maj Ron Smith 12/20/2015Dr Alain Beaulieu1.
Real-Time Scheduling CS 3204 – Operating Systems Lecture 13 10/3/2006 Shahrooz Feizabadi.
1 Real-Time Scheduling. 2Today Operating System task scheduling –Traditional (non-real-time) scheduling –Real-time scheduling.
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
Chapter 3: Real-Time Scheduling and Schedulability Analysis Albert M. K. Cheng.
Silberschatz and Galvin  Operating System Concepts Module 5: CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 5 CPU Scheduling Slide 1 Chapter 5 CPU Scheduling.
6.1 CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
Defects of the POSIX Sporadic Server and How to Correct Them
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Dynamic Priority Driven Scheduling of Periodic Task
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 31 – Process Management (Part 1) Klara Nahrstedt Spring 2009.
Sandtids systemer 2.modul el. Henriks 1. forsøg m. Power Point.
Lecture Topics: 11/15 CPU scheduling: –Scheduling goals and algorithms.
Mok & friends. Resource partition for real- time systems (RTAS 2001)
Chapter 4 CPU Scheduling. 2 Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
Fault-Tolerant Rate- Monotonic Scheduling Sunondo Ghosh, Rami Melhem, Daniel Mosse and Joydeep Sen Sarma.
Basic Concepts Maximum CPU utilization obtained with multiprogramming
Lecture 5 Scheduling. Today CPSC Tyson Kendon Updates Assignment 1 Assignment 2 Concept Review Scheduling Processes Concepts Algorithms.
Scheduling.
Lecture 6: Real-Time Scheduling
Real-time Embedded Systems Rate monotonic theory scheduling.
 Operating system.  Functions and components of OS.  Types of OS.  Process and a program.  Real time operating system (RTOS).
Chapter 2 Scheduling.
Lecture 24: Process Scheduling Examples and for Real-time Systems
Realtime System Fundamentals : Scheduling and Priority-based scheduling B. Ramamurthy cse321-fall2014 9/20/2018.
Lecture 21: Introduction to Process Scheduling
Chapter 6 Dynamic Priority Servers
Realtime System Fundamentals : Scheduling and Priority-based scheduling B. Ramamurthy cse321-fall /27/2018.
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
NET 424: REAL-TIME SYSTEMS (Practical Part)
Processes and operating systems
NET 424: REAL-TIME SYSTEMS (Practical Part)
Lecture 21: Introduction to Process Scheduling
Ch.7 Scheduling Aperiodic and Sporadic Jobs in Priority-Driven Systems
Presentation transcript:

Fixed-Priority Servers Typical Real-Time systems are hybrids characterized by: periodic tasks that execute critical control activities aperiodic tasks that are event-driven

Assumptions for Fixed Priority Servers:

Scheduling Strategies we will explore: Background Service First Come First Served (FCFS) service as availability permits Polling Server (PS) Pseudo periodic task(s) provides slot for serving aperiodic tasks Deferrable Server (DS) Unused capacity is saved for future aperiodic arrivals Priority Exchange Server (PE) “Loans” unusable capacity to ready periodic tasks Sporadic Server Loans unusable capacity to ready periodic tasks and delays recoup Slack Stealing Passive task steals unnecessary slack time in scheduling

Background Service Background Service simply queues up aperiodic tasks and services them perhaps on a First Come First Served basis. There are no guarantees. Advantages: Simple, Can use alternate scheduling algorithm for aperiodic tasks Disadvantage: No inherent guarantees

Background Service Example

Polling Server Advantages: Advantages: Relatively easy to implement Disadvantages: Not a big advantage in performance

Polling Server Example

Deferrable Server Advantages: Much better response time for aperiodic tasks compared to polling Disadvantages: More complex and DS violates the RM principle that the highest priority task runs when it is ready.

Example of Deferrable Server

Deferrable Server Example Shows that Deferrable Server violates the RM task running guarantee

Another Example of Deferrable Server Shows that the deferring can cause a task deadline to be missed

Priority Exchange Server Advantages: Provides a better Schedulability bound for periodic requests Disadvantages: Provides worse response for aperiodic tasks compared to Deferrable Server

Example of Priority Exchange

Another Example of Priority Exchange

Sporadic Server

Example of Medium-Priority Sporadic Server

Example of High-Priority Sporadic Server

Slack Stealing Advantages: Substantial improvement in aperiodic task response time Disadvantages: Complexity

Example of Slack Stealing

Slack Stealing Example Continued: s=0

Slack Stealing Example Continued: s=0

Performance Comparison of PS, DS, PE, & SS

Performance Comparison of Slack Stealer wrt background, PS, & SS

Summary of Fixed-Priority Strategies

Homework #5 Lecture 5/15 1) Schedule the following tasks with a Polling Server with intermediate priority. 2) Solve the same scheduling problem with a Sporadic Server with intermediate priority. 3) Solve the same scheduling problem with a Deferrable Server and highest priority. 4) Solve the same scheduling problem utilizing Slack Stealing.

Slack Stealing Does not Lead to an Optimal Schedule

Example to Show Non-existence of Optimal Server