Lecture - 4 - Real-Time Software Engineering
Lecture - 4 - Real-Time Software Engineering
which
Stimulus Response
Clear alarms Switch off all active alarms; switch off all lights that have
been switched on.
Console panic button positive Initiate alarm; turn on lights around console; call police.
Power supply failure Call service technician.
Sensor failure Call service technician.
Single sensor positive Initiate alarm; turn on lights around site of positive
sensor.
Two or more sensors positive Initiate alarm; turn on lights around sites of positive
sensors; call police with location of suspected break-in.
Voltage drop of between 10% Switch to battery backup; run power supply test.
and 20%
Voltage drop of more than 20% Switch to battery backup; initiate alarm; call police; run
power supply test.
Platform selection
Stimuli/response identification
Timing analysis
Process design
Algorithm design
Data design
Process scheduling
Deadlines
The times by which stimuli must be processed and some
response produced by the system.
Frequency
The number of times per second that a process must execute so
that you are confident that it can always meet its deadlines.
Execution time
The time required to process a stimulus and produce a
response.
Lights switch The lights should be switched on within half a second of an alarm being
raised by a sensor.
Movement detector Each movement detector should be polled twice per second.
Power failure The switch to backup power must be completed within a deadline of 50
ms.
Voice synthesizer A synthesized message should be available within 2 seconds of an
alarm being raised by a sensor.
Window alarm Each window alarm should be polled twice per second.
and
Process management
Allocated
of
disabled,
MUST