SE-3910 Real-time Systems Week 5, Class 2 – Lab turn-in page is up! – Use interrupts in a Linux/C environment – Scheduling – Watchdog follow-up Watchdog.

Slides:



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

Introduction to Embedded Systems Resource Management - III Lecture 19.
CS5270 Lecture 31 Uppaal, and Scheduling, and Resource Access Protocols CS 5270 Lecture 3.
Courseware Scheduling of Distributed Real-Time Systems Jan Madsen Informatics and Mathematical Modelling Technical University of Denmark Richard Petersens.
From HRT-HOOD to ADA95 Real-Time Systems Lecture 5 Copyright, 2001 © Adam Czajka.
Module 2 Priority Driven Scheduling of Periodic Task
SE3910 Week 2, Class 2 Today Real-Time Systems Embedded Systems Other ??? Week 3 Tuesday Lab Lab start TBA SE-2811 Slide design: Dr. Mark L. Hornick Content:
Project 2 – solution code
Courseware Basics of Real-Time Scheduling Jan Madsen Informatics and Mathematical Modelling Technical University of Denmark Richard Petersens Plads, Building.
Task scheduling What are the goals of a modern operating system scheduler, and how does Linux achieve them?
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
CprE 458/558: Real-Time Systems
Spring 2002Real-Time Systems (Shin) Rate Monotonic Analysis Assumptions – A1. No nonpreemptible parts in a task, and negligible preemption cost –
MM Process Management Karrie Karahalios Spring 2007 (based off slides created by Brian Bailey)
Real Time Operating Systems Scheduling & Schedulers Course originally developed by Maj Ron Smith 8-Oct-15 Dr. Alain Beaulieu Scheduling & Schedulers- 7.
Round Robin Scheduling A preemptive scheduling designed for Time Sharing Systems The Ready Queue is treated as a circular queue A small execution.
Virtual Plant Tour Stamping – c&p=n#/27;109http:// c&p=n#/27;109 –
CENG 314 Embedded Computer Systems Lecture 3 Theoretical Foundations of RTOS Asst. Prof. Tolga Ayav, Ph.D. Department of Computer Engineering İzmir Institute.
Scheduling policies for real- time embedded systems.
SE-3910 Real-time Systems Week 5, Class 2 – Lab turn-in page is up! – Lost-and-not-found power supply – Quick-Quiz (Ungraded) – Use interrupts in a Linux/C.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 31 – Multimedia OS (Part 1) Klara Nahrstedt Spring 2011.
Real-Time Scheduling CS 3204 – Operating Systems Lecture 20 3/3/2006 Shahrooz Feizabadi.
SE-3910 Real-time Systems Week 7, Class 1 – GStreamer – QT SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling, Some from.
Today Quiz Multithreading Options Qt socket buffers between threads Quiz today & Tuesday in lab SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr.
SE-3910 Real-time Systems Week 5, Class 1 – Quick-Quiz (Ungraded) – Lab 4 turn-in up - due Tuesday, Week 5 – Select when to use Polling or Interrupts –
Undergraduate course on Real-time Systems Linköping 1 of 45 Autumn 2009 TDDC47: Real-time and Concurrent Programming Lecture 5: Real-time Scheduling (I)
RTOS task scheduling models
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
Real-Time Scheduling CS 3204 – Operating Systems Lecture 13 10/3/2006 Shahrooz Feizabadi.
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
SE-3910 Real-time Systems Week 1, Class 2 – Fine Print – Web page available – Review Quiz 0 – What is a Real-Time Embedded System? Embedded & Real-Time.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
SE-3910 Real-time Systems Week 7, Class 1 – Announcement – GStreamer – Bins Boardshots – QT Swing & Qt Signals & Slots – Code – Example SE Dr. Josiah.
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.
Introduction to Real-Time Systems
Today Return Quiz First release of final project template Multithreading Options Qt socket buffers between threads Tomorrow: Quiz Interthread communication.
Today Final Project “Preview” Real-time concurrency Multithreading Options pthreads qthreads GPIO.h & GPIO.cpp Quiz tomorrow & Tuesday in lab SE-2811 Slide.
Today Return Quiz First true release of final project (Lab 8) Multithreading Options Qt socket buffers between threads SE-2811 Slide design: Dr. Mark L.
CS333 Intro to Operating Systems Jonathan Walpole.
Slides created by: Professor Ian G. Harris Operating Systems  Allow the processor to perform several tasks at virtually the same time Ex. Web Controlled.
Today Quiz not yet graded Final report requirements posted More on Multithreading Happens-Before in Java SE-2811 Slide design: Dr. Mark L. Hornick Content:
Today Signals Nyquist Theorem (revisited) Audio Sampling Latency and Bandwidth Scheduling Theory SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr.
Undergraduate course on Real-time Systems Linköping University TDDD07 Real-time Systems Lecture 2: Scheduling II Simin Nadjm-Tehrani Real-time Systems.
Clock Driven Scheduling
Determining Optimal Processor Speeds for Periodic Real-Time Tasks with Different Power Characteristics H. Aydın, R. Melhem, D. Mossé, P.M. Alvarez University.
Unit - I Real Time Operating System. Content : Operating System Concepts Real-Time Tasks Real-Time Systems Types of Real-Time Tasks Real-Time Operating.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 32 – Multimedia OS Klara Nahrstedt Spring 2010.
Process Scheduling Schedulers and Scheduling Methods.
SE3910 Week 8, Class 2 Week 4 Lab: Please return your graded Lab 4 to me so I can enter it in my gradebook Week 7, Class 2 (Wednesday) Half-Exam 2 Done.
Undergraduate course on Real-time Systems Linköping TDDD07 – Real-time Systems Lecture 1: Introduction & Scheduling I Simin Nadjm-Tehrani Real-time Systems.
Real-Time Operating Systems RTOS For Embedded systems.
SE3910 Week 8, Class 3 Week 4 Lab: Please return your graded Lab 4 to me so I can enter it in my gradebook Week 9 Lab: Individual demos of working sub-modules.
CS-2852 Data Structures Week 5, Class 3 – Testing and Recursion Queue Implementing finite queues Binary Search Recursion Tomorrow – Quiz, Lab demos, Lab.
CPU Scheduling Scheduling processes (or kernel-level threads) onto the cpu is one of the most important OS functions. The cpu is an expensive resource.
Embedded System Scheduling
SE-3910 Real-time Systems Week 10, Class 3 Loop jamming
EEE Embedded Systems Design Process in Operating Systems 서강대학교 전자공학과
Networks and Operating Systems: Exercise Session 2
Unit OS9: Real-Time and Embedded Systems
RTS: Kernel Design and Cyclic Executives
CSCI1600: Embedded and Real Time Software
RTS: Kernel Design and Cyclic Executives
CSCI1600: Embedded and Real Time Software
Processes and operating systems
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
Polling vs. Interrupts CS2852 4/9/2019
Polling vs. Interrupts CS2852 4/21/2019
Slide design: Dr. Mark L. Hornick
SE-3910 Real-time Systems Week 4, Class 1 Quick-Quiz (Ungraded!)
Presentation transcript:

SE-3910 Real-time Systems Week 5, Class 2 – Lab turn-in page is up! – Use interrupts in a Linux/C environment – Scheduling – Watchdog follow-up Watchdog demo SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling, Some from Dr. Hornick, etc. 1

Quick Quiz! (1) What is an advantage of a Watchdog Timer? What is a disadvantage? How can we avoid the disadvantages? SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 2

Quick Quiz! (2) Name two non-essential OS components and describe why each is non-essential. SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 3

Quick Quiz (3) What does this shell script print? script echo “var1: $1” echo ‘var2: $2’ echo “Number of Arguments: $#” when run as./script “John Doe” “Pete Stephens” “Nancy Drew” SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 4

Task State Diagram Laplante and Ovaske 4E p. 975

Scheduling Approaches Pre-runtime – Create a feasible schedule offline prior to execution – Requires prediction of the worst case performance for the system – Takes into account context switch overhead – Tries to avoid resource conflicts Runtime scheduling – Priorities (fixed or dynamic) are assigned and resources are allocated – Allows for tasks to be interrupted – Allows for resources to be demanded periodically, aperiodically, or sporadically SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 6

Scheduling Definitions Laplante and Ovaske 4E p. 987

(cont.) SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 8

Simplifying Assumptions All tasks in the task set considered are strictly periodic. The relative deadline of a task is equal to its period. All tasks are independent; there are no precedence constraints. No task has any nonpreemptible section, and the cost of preemption is negligible. Only processing requirements are significant; memory and I/O requirements are negligible. SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 9

Round-Robin Scheduling SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 10

Round-Robin Scheduling with pre-emption SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 11

Cyclic Code Scheduling Scheduling decisions are made periodically rather than arbitrarily – Major cycle (hyperperiod) The minimum time required to execute tasks allocated to the CPU Equal to the least common multiple of the task periods – Frames The locations where scheduling decisions are made No premption within frames SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 12

Optimal Cyclic Code Scheduling – Rate Monotonic Scheduling SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 13

In-Class Exercise Calculation: What is the processor utilization for this problem? Based on RMA, what order will they execute and how will they execute? Hints: Draw release times, break up processing into multiple frames if needed. SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 14

Rate-Monotonic Example SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 15

RMA Guarantee – Upper Bound for lower bound for range that will work SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 16

Demo – Connecting to Beaglebone [TODO] – Perhaps another time! – I may eventually put instructions for setting up a DHCP server on your laptop using “connection sharing” on website under “Objectives” – Ask me if you don’t find it when you need it – You know my number. SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 17

Demo – Watchdog One prompt for i in `seq `; do echo $(($i*10)); sleep 10; done; Another cat > /dev/watchdog SE Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 18