Real-Time and Embedded Systems Flashcards
(42 cards)
What is a real-time system?
Any information processing system which must respond to externally generated input stimuli within a finite and specified period. The correctness depends not only on the response but also the time it was delivered. Failure to respond in time is as bad as a wrong response.
What are the classes of real-time systems?
Hard real-time
Soft real-time
Firm real-time
What is a hard real-time system?
Systems where it is absolutely imperative that responses occur within the required deadline, e.g. a flight control system.
What is a soft real-time system?
Systems where deadlines are important but which will still function correctly if deadlines are occasionally missed, e.g. a data acquisition system.
What is a firm real-time system?
Systems which are soft real-time but in which there is no benefit from late delivery of service (assuming that there can be something to be gained by late delivery), e.g. on demand video streaming.
What are the most popular choices for real-time programming languages?
Java/Real-Time Java
C and Real-Time POSIX
Ada 2012; Ada 202x draft 32
What is a bug?
A software fault
What are the types of bugs?
Bohrbugs
Heisenbugs
What is a bohrbug?
Reproducible and identifiable
What is a heisenbug?
Only active under rare conditions (e.g. race conditions)
What are the two classes of role of time?
- Time-aware
- Reactive
What is a time-aware system?
A system which makes explicit reference to time, the system operation references absolute time values.
What is a reactive system?
The system must produce output within deadline (as measured from input). The system operation references relative time values and must “keep up-to-date with the environment”. Examples include control systems.
What the the different structural and temporal requirements of a RTS?
- Time-triggered
- Event-triggered
What is meant by a time-triggered RTS?
Computation is triggered by the passage of time (e.g. activity at 9:00am)
What is a periodic activity?
Release activity every 25ms
What is an event-triggered RTS?
Computation triggered by an external or internal event
What is a sporadic activity?
Released activity is sporadic if there is a bound on the arrival interval of the event (e.g. mass storage)
What is an aperiodic activity?
Released activity is aperiodic if there is no bound on the arrival (e.g. moving the pointer with a mouse on a PC screen)
What are 6 characteristics of a RTS?
- Guaranteed response time
- Multiple systems can be controlled at the same time
- Can interact with specialist hardware
- Continuous numerical computation
- Large and complex
- Reliable and safe - embedded systems often control environment in which failures result in loss of life etc.
What is meant by a safe RTS?
Freedom from damage to people, environment and itself, e.g.
System safety analysis must be performed at all stages of its life cycle
What is meant by a reliable RTS?
Measure of success vs specification
What is a failure?
When the behaviour deviates from that which is specified due to unexpected internal problems, manifesting in the external behaviour
What is the difference between an error and a fault?
A mechanical or software fault is the cause which produces an error in the systems behaviour