Professional Documents
Culture Documents
8 CITW Real Time Systems Concepts
8 CITW Real Time Systems Concepts
CT006-1
Real-time Systems
Learning Outcomes
At the end of this section, YOU should be able to:
Chapter 9
Chapter 9
Chapter 9
Chapter 9
Chapter 9
Chapter 9
Hard RTS
Zero Utility value after deadline
Chapter 9
Soft RTS
Decreasing Utility value after deadline
Chapter 9
NonRTS
Utility value remains constant
Chapter 9
Dependable Systems?
A system is dependable when it is trustworthy enough that
reliance can be placed on the service that it delivers. For a
system to be dependable, it must be
Available - e.g., ready for use when we need it.
Reliable - e.g., able to provide continuity of service
while we are using it.
Safe - e.g., does not have a catastrophic consequence
on the environment.
Secure - e.g., able to preserve confidentiality.
Chapter 9
11
Why dependability?
In safety-critical applications - such as flight control,
medical life support (medical equipments),
telecommunication switching, and on-line transaction
processing systems - failure of computing resources can
cost lives and/or money.
Chapter 9
12
Availability
Availability is a measure of the delivery of proper service
with respect to the alternation of proper and improper
service. In other words, it is the probability of being
operational at a given instant of time.
A 0.999999 availability means that the system is not
operational at most one hour in a million hours.
Soft real-time systems such as telephone switching and
airline reservation require high availability.
Chapter 9
13
Reliability
Hard real-time systems such as flight control and
process control demand high reliability, in which a failure
could mean loss of life.
Continuity of correct service
Highly reliable systems are used in situations in which
repair cannot take place (e.g. spacecraft) or in which the
computer is performing a critical function for which even
the small amount of time lost due to repairs cannot be
tolerated (e.g. flight-control computers).
Chapter 9
14
Safe
Absence of catastrophes for users and
environment
Many process control systems, such as
those used for chemical plants, sending
people into space or for controlling nuclear
power plants, are required to provide a
high degree of safety.
Chapter 9
15
Secure
Confidentiality
Integrity
consistency of actions
Chapter 9
16
Chapter 9
17
What is a fault?
An error is the part of a systems total
state that may lead to a failure
A failure occurs when the error causes the
delivered service to deviate from correct
service
The cause of the error is called a fault
Fault Error Failure
Chapter 9
18
Chapter 9
19
Chapter 9
20
Fault types:-
Chapter 9
21
Software Faults
Software faults are caused by incorrect design, or
coding of a program.
Bugs
Chapter 9
22
Error Recovery
Error recovery is the process by which the system
attempts to recover from the effects of an error.
Forward error recovery:
In this approach, the error is masked without any
computations having to be redone.
Backward error recovery:
In this approach, the system is rolled back to a state
before the error is believed to have occurred and the
computation is carried out again.
Computer and IT in Workplace
Chapter 9
23
Embedded Systems
Chapter 9
sensor
actuator
actuator
actuator
actuator
Chapter 9
Environment
Chapter 9
RTS Application
Chapter 9
27
RTS Application
Controlling System
Human driver: Sensors - Eyes and Ears of
the driver.
Computer: Sensors - Cameras, Infrared
receiver, and Laser telemeter.
Chapter 9
28
RTS Application
Critical tasks (Hard): Steering and
breaking.
Immediate tasks (Firm): Lights, signal
lights, wiper
Non-critical tasks (Soft): Turning on
radio.
Chapter 9
29
RTS Application
Performance is not an absolute one. It
measures the goodness of the outcome
relative to the best outcome possible
under a given circumstance.
Cost of fulfilling the mission Efficient
solution.
Reliability of the driver Fault-tolerance
is a must.
Computer and IT in Workplace
Chapter 9
30
Review Questions
Chapter 9
31
Q&A
Computer and IT in Workplace
Chapter 9
32
Chapter 9
33