RTOS
RTOS
RTOS
Systems
Operating System Concepts – 8th Edition Silberschatz, Galvin and Gagne ©2009
Chapter 19: Real-Time Systems
System Characteristics
Operating System Concepts – 8th Edition 19.2 Silberschatz, Galvin and Gagne ©2009
Objectives
To explain the timing requirements of real-time systems
Operating System Concepts – 8th Edition 19.3 Silberschatz, Galvin and Gagne ©2009
Overview of Real-Time Systems
A real-time system requires that results be produced within a
specified deadline period.
Operating System Concepts – 8th Edition 19.4 Silberschatz, Galvin and Gagne ©2009
System Characteristics
Single purpose
Small size
Inexpensively mass-produced
Operating System Concepts – 8th Edition 19.5 Silberschatz, Galvin and Gagne ©2009
System-on-a-Chip
Many real-time systems are designed using system-on-a-chip (SOC)
strategy
Operating System Concepts – 8th Edition 19.6 Silberschatz, Galvin and Gagne ©2009
Bus-Oriented System
Operating System Concepts – 8th Edition 19.7 Silberschatz, Galvin and Gagne ©2009
Features of Real-Time Kernels
Most real-time systems do not provide the features found in a
standard desktop system
Reasons include
Real-time systems are typically single-purpose
Real-time systems often do not require interfacing with a user
Features found in a desktop PC require more substantial
hardware that what is typically available in a real-time system
Operating System Concepts – 8th Edition 19.8 Silberschatz, Galvin and Gagne ©2009
Virtual Memory in Real-Time Systems
Address translation may occur via:
Operating System Concepts – 8th Edition 19.9 Silberschatz, Galvin and Gagne ©2009
Address Translation
Operating System Concepts – 8th Edition 19.10 Silberschatz, Galvin and Gagne ©2009
Implementing Real-Time Systems
2. Preemptive kernels
Operating System Concepts – 8th Edition 19.11 Silberschatz, Galvin and Gagne ©2009
Minimizing Latency
Event latency is the amount of time from when an event occurs to
when it is serviced.
Operating System Concepts – 8th Edition 19.12 Silberschatz, Galvin and Gagne ©2009
Interrupt Latency
Interrupt latency is the period of time from when an interrupt arrives at
the CPU to when it is serviced
Operating System Concepts – 8th Edition 19.13 Silberschatz, Galvin and Gagne ©2009
Dispatch Latency
Dispatch latency is the amount of time required for the scheduler to
stop one process and start another
Operating System Concepts – 8th Edition 19.14 Silberschatz, Galvin and Gagne ©2009
Real-Time CPU Scheduling
Periodic processes require the CPU at specified intervals (periods)
p is the duration of the period
d is the deadline by when the process must be serviced
t is the processing time
Operating System Concepts – 8th Edition 19.15 Silberschatz, Galvin and Gagne ©2009
Scheduling of tasks when P2
has a higher priority than P1
Operating System Concepts – 8th Edition 19.16 Silberschatz, Galvin and Gagne ©2009
Rate Montonic Scheduling
Operating System Concepts – 8th Edition 19.17 Silberschatz, Galvin and Gagne ©2009
Missed Deadlines with
Rate Monotonic Scheduling
Operating System Concepts – 8th Edition 19.18 Silberschatz, Galvin and Gagne ©2009
Earliest Deadline First Scheduling
Operating System Concepts – 8th Edition 19.19 Silberschatz, Galvin and Gagne ©2009
Proportional Share Scheduling
Operating System Concepts – 8th Edition 19.20 Silberschatz, Galvin and Gagne ©2009
Pthread Scheduling
Operating System Concepts – 8th Edition 19.21 Silberschatz, Galvin and Gagne ©2009
VxWorks 5.0
Operating System Concepts – 8th Edition 19.22 Silberschatz, Galvin and Gagne ©2009
Wind Microkernel
Operating System Concepts – 8th Edition 19.23 Silberschatz, Galvin and Gagne ©2009
End of Chapter 19
Operating System Concepts – 8th Edition Silberschatz, Galvin and Gagne ©2009