OS CO4 S6 Realtime EmbededSystems
OS CO4 S6 Realtime EmbededSystems
INSTRUCTIONAL
OBJECTIVES
This Session is designed to:
1. Demonstrate what is meant by Real-time Systems.
2. Demonstrate what is meant by Embedded Systems.
3. Describe the types of Real-time Systems and Embedded Systems.
4. Describe the Advantages and Disadvantages of Real-time and Embedded
Systems.
LEARNING OUTCOMES
2
REAL-TIME SYSTEMS
Examples:
- Aircraft control systems (flight management).
- Robotics (precise motor control).
3
STRUCTURE OF REAL-TIME SYSTEMS
4
TYPES OF REAL-TIME SYSTEMS BASED ON
TIMING CONSTRAINTS
1.Hard real-time system: This type of system can never miss its deadline. Missing the
deadline may have disastrous consequences. The usefulness of results produced by a
hard real-time system decreases abruptly and may become negative if tardiness
increases (How late a real-time system completes its task concerning its deadline).
Example: Flight controller system.
2.Soft real-time system: This type of system can miss its deadline occasionally with
some acceptably low probability. Missing the deadline has no disastrous consequences.
The usefulness of results produced by a soft real-time system decreases gradually with
an increase in tardiness. Example: Telephone switches.
3.Firm Real-Time Systems: These are systems that lie between hard and soft real-time
systems. In firm real-time systems, missing a deadline is tolerable, but the usefulness
of the output decreases with time. Examples of firm real-time systems include online
trading systems, online auction systems, and reservation systems.
5
REAL-TIME SYSTEM
REQUIREMENTS
Timing Constraints
• Each task must be completed within a specific time (deadline).
• Example: In healthcare, a pacemaker must send electrical impulses
at precise intervals.
Reliability and Availability
• The system should always be operational (high uptime), as failure
could have severe consequences.
Predictability
• The system should behave consistently under all circumstances to
ensure proper operation.
COMPONENTS OF A REAL-TIME
SYSTEM
Real-Time Operating System (RTOS):
• Manages hardware and software resources in real-time, ensuring
tasks meet deadlines.
Task Scheduling:
• Determines when and how tasks are executed, ensuring the
system meets its time requirements.
Resource Management:
• Allocates processor time, memory, and other resources
efficiently among tasks.
REAL-TIME SCHEDULING ALGORITHMS
• The maximum allowable response time of a job is called its relative deadline.
• The absolute deadline of a job is equal to its relative deadline plus its release
time.
• Processors are also known as active resources. They are essential for the
execution of a job. A job must have one or more processors in order to execute
and proceed towards completion. Example: computer, transmission links.
• Resources are also known as passive resources. A job may or may not require a
resource during its execution. Example: memory, mutex.
• Two resources are identical if they can be used interchangeably else they are
heterogeneous.
12
ADVANTAGES
13
DISADVANTAGE
S
• Real-time systems can be complex and difficult to design, implement, and test,
requiring specialized skills and expertise.
• They can be expensive to develop, as they require specialized hardware and
software components.
• Real-time systems are typically less flexible than other types of computer
systems, as they must adhere to strict timing requirements and cannot be easily
modified or adapted to changing circumstances.
• They can be vulnerable to failures and malfunctions, which can have serious
consequences in critical applications.
• Real-time systems require careful planning and management, as they must be
continually monitored and maintained to ensure they operate correctly.
14
WHAT IS AN EMBEDDED SYSTEM
• Hardware Components:
- Microcontroller / Microprocessor
- Memory (ROM, RAM, EEPROM)
- Sensors
- Actuators
• Software Components:
- Firmware
- Real-Time Operating System (RTOS)
- Device Drivers
TYPES OF EMBEDDED SYSTEMS
19
MICROCONTROLLER VS.
MICROPROCESSOR
• Common Protocols:
- I2C: Two-wire communication
- SPI: High-speed communication
- CAN: Automotive systems
APPLICATIONS OF EMBEDDED SYSTEMS
• Challenges:
- Resource Constraints
- Real-Time Performance
- Power Consumption
FUTURE TRENDS IN EMBEDDED
SYSTEMS
• Trends:
- IoT: Internet of Things
- Edge Computing: Data processing close to the
source
- AI in Embedded Systems.
ACTUATOR
• The actuator is the device that is the reverse of the sensor. The
actuator is used to convert electrical events into physical signals
while the sensor is used to do the reverse job. It may convert
electrical signals into physical events or characteristics according
to the requirements of the user.
• It takes input from the system and gives output to the
environment.
• The output obtained from the actuator may be in the form of any
physical action.
• Some of the commonly used actuators are heaters and motors.
26
SENSOR
27
REAL-TIME OPERATING
SYSTEM
28
EMBEDDED OPERATING SYSTEM
29
FAULT TOLERANCE
30
HARDWARE FAULT-TOLERANCE TECHNIQUES
31
HARDWARE FAULT-TOLERANCE TECHNIQUES
• BIST: When the system detects a fault, it switches out the faulty
component and switches in the redundancy of it. The system
reconfigures itself in case of fault occurrence.
• TMR: Three redundant copies of critical components are
generated and all these three copies are run concurrently.
32
SOFTWARE FAULT-TOLERANCE TECHNIQUES
33
SOFTWARE FAULT-TOLERANCE TECHNIQUES
34
THANK YOU
35