Introduction
Introduction
Introduction
• Real-Time Systems
• Hard and soft deadlines; operational definition
© R. Bettati
• In other words
plant sensor
system
state
equation
control law
regulator estimator
© R. Bettati
1
CPSC-663 Real-Time Systems
Introduction
• Control Loop:
DO FOREVER
wait_for_delay
h := fluid_height
theta := valve_position
r := table_lookup(h, theta)
IF r = left THEN turn_left
ELSE IF r = right THEN turn_right
ELSE do_nothing
ENDDO
© R. Bettati
© R. Bettati
2
CPSC-663 Real-Time Systems
Introduction
© R. Bettati
Final State:
© R. Bettati
3
CPSC-663 Real-Time Systems
Introduction
In our case: ⇥
1 1 e aP
⇥
JD (P )=
˜ pxd
2 1+e aP
Constraints: |x(tf ) xd | ⇥
⇥
1 e aP
1 xd +
xd ⇥ ⇤ P ⇥ ln
1+e aP a xd
© R. Bettati
performance index
JD*(1/P)
J*
frequency
1/Pmax 1/P
© R. Bettati
4
CPSC-663 Real-Time Systems
Introduction
Notation: J (P ) := JD (P ) J
Optimization problem:
Given a set of tasks, Τ1, …, Τn, with given ΔJ*i(•) and execution times Ci,
find a set of periods Pi , such that
1. Pi <= Pi max // Maintain stability
n
2. Minimize (maximize) Ji (Pi ) // Optimize total
i=1 // performance index
n
1
3. Resource Constraint: Ci U // CPU capacity
i=1
Pi
© R. Bettati
Example: Multimedia
Example: Teleseminars
© R. Bettati
5
CPSC-663 Real-Time Systems
Introduction
monitoring clinical
alarm database
IP clinical
database
monitoring
alarm
© R. Bettati
Batch
Processing
Plant
Plant Discrete
Manufacturing
Refining Plant Host Plant
IRNS
Host Host
IRNS IRNS
Network (IRNS)
Clients
Intrusion Resilient Network (IRN)
Network (IRNS)
Servers
© R. Bettati
6
CPSC-663 Real-Time Systems
Introduction
© R. Bettati
© R. Bettati
7
CPSC-663 Real-Time Systems
Introduction
© R. Bettati
© R. Bettati
8
CPSC-663 Real-Time Systems
Introduction
© R. Bettati
© R. Bettati
9
CPSC-663 Real-Time Systems
Introduction
Cars as SoS
(www.autofieldguide.com)
© R. Bettati
Example:
Asynchronous Design of Digital Flight Control Systems
(J. Rushby, SRI-CSL-93-07, Nov. 1993)
redundant digital
control channels output selection
sensor output
analog backup
© R. Bettati
10
CPSC-663 Real-Time Systems
Introduction
© R. Bettati
• Resources:
http://research.microsoft.com/en-
us/um/people/mbj/Mars_Pathfinder/
Mars_Pathfinder.html
© R. Bettati
11
CPSC-663 Real-Time Systems
Introduction
other tasks
Task ASI/MET
low priority
starts
gets preempted
locks mutex
© R. Bettati
A: Timing Constraints!
© R. Bettati
12
CPSC-663 Real-Time Systems
Introduction
Timing constraints:
– Release Time: time when job becomes available for
execution
– Deadline: time when execution must be completed
– Relative Deadline: maximum response time
© R. Bettati
“rather hard”
“rather soft” system
Overall
system
Overall
tardiness
© R. Bettati
13
CPSC-663 Real-Time Systems
Introduction
• Examples:
– Embedded systems
– Recovery procedures in high-availability systems
– many others …
© R. Bettati
© R. Bettati
14
CPSC-663 Real-Time Systems
Introduction
A: Verification, Certification
© R. Bettati
© R. Bettati
15
CPSC-663 Real-Time Systems
Introduction
u usefulness
Non-stringent timing requirements
on-line transaction system
telephone switches d
t
u
More stringent timing requirements
Stock price quotation system
d
t
u
Stringent timing requirements
Multimedia
d
Requirements often specified in t
probabilistic terms; validation is
often done by simulation, trial use.
© R. Bettati
16