1
Klas Arvidsson, IDA, Linköpings universitet.
TDDI04 Concurrent Programming, Operating Systems, and Real-time Operating Systems
Acknowledgment: Some slides are by courtesy of Jörgen Hansson, RTSLAB / IDA. The lecture notes are originally compiled by C. Kessler, IDA.
Real-time Operating Systems
Short introduction [GSS7 Chapter 19]
RT.2
TDDI04, K. Arvidsson, IDA, Linköpings universitet.
- RT.3
TDDI04, K. Arvidsson, IDA, Linköpings universitet.
What is a Real-time System?
§ A real-time system is any information processing system which has to respond to externally generated input stimuli within a finite and specified period.
- Correctness depends not only on the logical result but also
the time it was delivered!
- Failure to respond is as bad as the wrong response!
§ Many (but not all) real-time systems are embedded systems.
- Embedded computer system:
the computer is a component in a larger engineering system.
- Ex.: Consumer electronics devices, car control systems, ...
RT.4
TDDI04, K. Arvidsson, IDA, Linköpings universitet.
Example: Controlling flow of cooling water in a nuclear power plant
Pipe Flow meter Valve (regulator) Interface Computer Time Input flow reading Processing Output valve angle
RT.5
TDDI04, K. Arvidsson, IDA, Linköpings universitet.
Some Misconceptions about Real-Time Systems
MISCONCEPTION #1: ”Real-time computing is equivalent to fast computing!” § CORRECT: Real-time computing aims at predictability foremost, and secondly, efficiency. § Predictability: Time-cognizant behavior of the system, i.e., the system is designed and developed to enforce temporal correctness, preferably by direct awareness and explicit notion of time.
RT.6
TDDI04, K. Arvidsson, IDA, Linköpings universitet.
Some Misconceptions about Real-Time Systems
MISCONCEPTION #2: ”Advances in hardware performance will solve real-time problems” § CORRECT: Improving hardware performance is always desirable, but does not imply (without support of analysis) that predictability has been maintained / achieved (e.g., release times of tasks). § Most computer architecture techniques improve on the average case but may even aggravate the worst case!
- Example: Memory access time with caching, TLB