Introduction To Real-Time Systems
Introduction To Real-Time Systems
• Administrivia
– Aims and objections
– Intended learning outcomes
– Prerequisites
– Module outline and timetable
– Reading list
– Assessment
• Introduction to real-time systems
– Examples
– Types of real-time system
– Implementation considerations
Copyright © 2005 University of Glasgow
Lecturer Contact Details
http://csperkins.org/teaching/2004-2005/rtes5/
Copyright © 2005 University of Glasgow
Aims of This Module
– On best-effort networks
– Enhanced quality of service
• Other implementation considerations
Timetable
No Lectures
be examinable
– Aim is to test your understanding of the material, not to test your memory
of all the details; explain why – don’t recite what
Reading
– Some embedded real-time systems are safety critical – i.e. if they do not
complete on a timely basis, serious consequences result
– Bugs in embedded real-time systems are often difficult or expensive to fix
Real-Time and Embedded Systems
controller
reference control-law
input: r(t) A/D D/A
rk computation uk
Copyright © 2005 University of Glasgow
A/D y
k
y(t) u(t)
Desired
Large T
y(t) umax
Copyright © 2005 University of Glasgow
0 u(t)
-umax
Measured State Control Output
Digital Control
State Flight
Estimator control
Air data
Real-Time Communications
• Not only does a system need to run a control law with time
constraints, it must also schedule communications, sending
and receiving messages according to deadlines
Copyright © 2005 University of Glasgow
Example: Drive by Wire
Steering Brake Accelerator Gears
Brake
actuator Controller Engine
area network controls
Wheel Engine
sensors sensors
Control
system
Packet switched
voice network
– Purely cyclic
• Every task executes periodically
• Demands in (computing, communication, and storage) resources do not vary
significantly from period to period
• Example: most digital controllers and real-time monitors
– Mostly cyclic
• Most tasks execute periodically
• The system must also respond to some external events (fault recovery and
external commands) asynchronously
Copyright © 2005 University of Glasgow
kilobytes of memory
– Correctness a primary concern, efficiency a close second
Summary