REAL-TIME OPERATING SYSTEMS

Slides:



Advertisements
Similar presentations
Real Time Scheduling.
Advertisements

Chapter 7 - Resource Access Protocols (Critical Sections) Protocols: No Preemptions During Critical Sections Once a job enters a critical section, it cannot.
Introduction to Embedded Systems Resource Management - III Lecture 19.
CSC 360- Instructor: K. Wu Overview of Operating Systems.
Copyright © 2000, Daniel W. Lewis. All Rights Reserved. CHAPTER 8 SCHEDULING.
A Sample RTOS Presentation 4 Group A4: Sean Hudson, Manasi Kapadia Syeda Taib.
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.
Real-Time Kernels and Operating Systems Basic Issue - Purchase commercial “off-the- shelf” system or custom build one Basic Functions –Task scheduling.
Real-Time Operating System Chapter – 8 Embedded System: An integrated approach.
Chapter 19: Real-Time Systems Silberschatz, Galvin and Gagne ©2005 AE4B33OSS Chapter 19: Real-Time Systems System Characteristics Features of Real-Time.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
Real-Time Systems Mark Stanovich. Introduction System with timing constraints (e.g., deadlines) What makes a real-time system different? – Meeting timing.
The Linux Operating System C. Blane Adcock Bryan Knehr Kevin Estep Jason Niesz.
1 Review of Process Mechanisms. 2 Scheduling: Policy and Mechanism Scheduling policy answers the question: Which process/thread, among all those ready.
ECGR-6185 µC/OS II Nayana Rao University of North Carolina at Charlotte.
1 VxWorks 5.4 Group A3: Wafa’ Jaffal Kathryn Bean.
Introduction to Embedded Systems Rabie A. Ramadan 5.
19.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 19: Real-Time Systems.
Chapter 19: Real-Time Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 19: Real-Time Systems System Characteristics.
Sandtids systemer 2.modul el. Henriks 1. forsøg m. Power Point.
What is an Operating System? Various systems and their pros and cons –E.g. multi-tasking vs. Batch OS definitions –Resource allocator –Control program.
1.  System Characteristics  Features of Real-Time Systems  Implementing Real-Time Operating Systems  Real-Time CPU Scheduling  An Example: VxWorks5.x.
Unit - I Real Time Operating System. Content : Operating System Concepts Real-Time Tasks Real-Time Systems Types of Real-Time Tasks Real-Time Operating.
Outlines  Introduction  Kernel Structure  Porting.
CONCEPTS OF REAL-TIME OPERATING SYSTEM. OBJECTIVE  To Understand Why we need OS?  To identify Types of OS  To Define Real - Time Systems  To Classify.
Real-Time Operating Systems RTOS For Embedded systems.
 Operating system.  Functions and components of OS.  Types of OS.  Process and a program.  Real time operating system (RTOS).
Introduction to Real-Time Operating Systems
Real-time Software Design
Module 12: I/O Systems I/O hardware Application I/O Interface
Chapter 19: Real-Time Systems
TrueTime.
Lecture 12: Real-Time Scheduling
EEE Embedded Systems Design Process in Operating Systems 서강대학교 전자공학과
Topics Covered What is Real Time Operating System (RTOS)
Scheduling and Resource Access Protocols: Basic Aspects
Applied Operating System Concepts -
Networks and Operating Systems: Exercise Session 2
REAL TIME OPERATING SYSTEM
Unit OS9: Real-Time and Embedded Systems
EEE 6494 Embedded Systems Design
Chapter 8 – Processor Scheduling
Lecture 4 Schedulability and Tasks
Real-time Software Design
Threads and Locks.
Lecture 24: Process Scheduling Examples and for Real-time Systems
Real-Time Operating System (RTOS)
Chapter 3: Windows7 Part 2.
Processor Fundamentals
Chapter 3: Windows7 Part 2.
Operating System Concepts
Real-Time Operating Systems
Mid Term review CSC345.
Chapter 2: The Linux System Part 3
TDC 311 Process Scheduling.
CSCI1600: Embedded and Real Time Software
CPU SCHEDULING.
CPU scheduling decisions may take place when a process:
Multiprocessor and Real-Time Scheduling
EE 472 – Embedded Systems Dr. Shwetak Patel.
Subject Name: Operating System Concepts Subject Number:
Chapter 19: Real-Time Systems
CSCI1600: Embedded and Real Time Software
Processes and operating systems
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Chapter 10 Multiprocessor and Real-Time Scheduling
CS703 - Advanced Operating Systems
Real-Time Process Scheduling Concepts, Design and Implementations
Real-Time Process Scheduling Concepts, Design and Implementations
Module 12: I/O Systems I/O hardwared Application I/O Interface
Presentation transcript:

REAL-TIME OPERATING SYSTEMS PRESENTED BY KIRAN K

CONTENTS Introduction General Purpose Operating System Non-Real-Time systems RTOS Types of RTOS Basic Functions of RTOS kernel RTOS Categories RT Linux: an example Conclusion

General Purpose Operating System An interface between users and hardware Controlling and allocating memory Controlling input and output devices Managing file systems Facilitating networking

Non-Real-Time systems Non-Real-Time systems are the operating systems most often used No guaranteed worst case scheduling jitter System load may result in delayed interrupt response System response is strongly load dependent System timing is a unmanaged resource

What is a RTOS ?? RTOS is a pre-emptive multitasking operating system intended for real-time applications Predictable OS timing behavior Able to determine task’s completion time A system of priority inheritance has to exist Guarantees task completion at a set deadline.

Types of RTOS Soft Real-Time system Hard Real-Time system

Soft Real-Time system The soft real-time definition allows for frequently missed deadlines If the system fails to meet the deadline, possibly more than once ,the system is not considered to have failed Example : Multimedia streaming , Video games

Hard Real-Time system A hard real-time system guarantees that real-time tasks be completed within their required deadlines Failure to meet a single deadline may lead to a critical system failure Examples: air traffic control , vehicle subsystems control, medical systems

Basic functions of RTOS kernel Task Management Interrupt handling Memory management Exception handling Task synchronization Task scheduling Time management

Task Management Tasks are implemented as threads in RTOS Have timing constraints for tasks Each task a triplet: (execution time, period, deadline) Can be initiated any time during the period

Task States Idle : task has no need for computer time Ready : task is ready to go active, but waiting for processor time Running : task is executing associated activities Waiting : task put on temporary hold to allow lower priority task chance to execute suspended: task is waiting for resource

Interrupt handling

Interrupt handling Types of interrupts Asynchronous or hardware interrupt Synchronous or software interrupt Very low Interrupt latency The ISR of a lower-priority interrupt may be blocked by the ISR of a high-priority

Memory management RTOS may disable the support to the dynamic block allocation When a task is created the RTOS simply returns an already initialized memory location when a task dies, the RTOS returns the memory location to the pool No virtual memory for hard RT tasks

Exception handling Exceptions are triggered by the CPU in case of an error E.g. : Missing deadline, running out of memory, timeouts, deadlocks, divide by zero, etc. Error at system level, e.g. deadlock Error at task level, e.g. timeout

Exception handling Standard techniques: System calls with error code Watch dog Fault-tolerance Missing one possible case may result in disaster

Task Synchronization Semaphore Mutex Spinlock Read/write locks

Task scheduling Scheduler is responsible for time-sharing of CPU among tasks Priority-based Preemptive Scheduling Rate Monotonic Scheduling Earliest Deadline First Scheduling Round robin scheduling

Task scheduling Priority-based Preemptive Scheduling Assign each process a priority At any time, scheduler runs highest priority process ready to run Rate Monotonic Scheduling A priority is assigned based on the inverse of its period Shorter execution periods = higher priority Longer execution periods = lower priority

Task scheduling Earliest Deadline First Scheduling Priorities are assigned according to deadlines The earlier the deadline, the higher the priority Priorities are dynamically chosen Round robin scheduling Designed for time-sharing systems Jobs get the CPU for a fixed time Ready queue treated as a circular buffer Process may use less than a full time slice

Example of Task scheduling (RR)

Time management Time interrupt : A high resolution hardware timer is programmed to interrupt the processor at fixed rate Each time interrupt is called a system tick The tick may be chosen according to the given task parameters

Existing RTOS categories Priority based kernel for embbeded applications VxWorks, OSE, QNX Real Time Extensions of existing time-sharing OS Real time Linux , Real time NT Research RT Kernels MARS, Spring

RT Linux: an example RT-Linux is an operating system, in which a small real-time kernel co-exists with standard Linux kernel Non RT Kernel

RT Linux Kernel

Conclusion RTOS is an OS for response time controlled and event controlled processes. The processes have predicable latencies and execute by pre-emptive scheduling An RTOS is an OS for the systems having the hard or soft real timing constraints and deadline on the tasks

Any questions and queries???

Thankyou…!!!