SlideShare a Scribd company logo
2
Most read
14
Most read
19
Most read
Real Time System (RTS)
The Islamic University
Department of
Computer Technical Engineering
Third Class
Lecturer
Asst. Lec. Karrar Shakir Muttair ALNomani
‫المحاضر‬‫ه‬‫االولى‬
(‫النظري‬)
2019-2020
Contents
 Concepts of Real time Systems (RTS)
 Characteristics of RTS
 Types of RTS
 Comparison between Types of RTS
 Applications of RTS
 Challenges of RTS
2
Concepts of Real time Systems(RTS)
3
Real-time is a quantitative notion of time measured using a physical clock.
Example: After a certain event occurs (temperature exceeds 50 degrees) the
corresponding action (coolant shower) must complete within 100 mSec.
System: As system is a mapping of a set of inputs into a set of outputs. When the
internal details of the system are not of interest, the mapping function can be
considered as a black box with one or more inputs entering and one or more
outputs existing the system Figure 1.1.
Figure 1.1: A system with (n) inputs and (m) outputs.
4
Terms Associated with RTS
 The response-time is the time between the presentation of a set of inputs to
a system and the realization of the required behavior, including the availability of
all associated outputs, is called the response time of the system.
 A real-time system must satisfy response-time constraints or risk severe
consequences.
 A failed system is a system that cannot satisfy one or more of the
requirements stipulated in the formal system specification.
Real time system means that the system is subjected to real time, i.e.,
response should be guaranteed within a specified timing constraint or system
should meet the specified deadline. For example: flight control system, real time
monitors etc.
Concepts of Real time Systems(RTS)
5
 Job : A job is a small piece of work that can be assigned to a processor and
may or may not require resources.
 Tasks: A set of related jobs that jointly provide some system functionality.
 Release time of a job: It is the time at which job becomes ready for execution.
 Execution time of a job: It is the time taken by job to finish its execution.
 Deadline of a job: It is the time by which a job should finish its execution.
Deadline is of two types:
1. Relative deadline: Deadline - Release time.
2. Absolute deadline is equal to its relative deadline plus its release time.
Absolute deadline= release time + relative deadline
 Response time of a job: It is the length of time from release time of a job to
the instant when it finishes (Completion time).
Response time of a job= Completion time - Release time
Terms Associated with RTS
6
Terms Associated with RTS
Released time = 3
Relative deadline = Deadline - Release time
= 10 – 3 = 7
Absolute deadline = release time + relative deadline
= 3 + 7 = 10
Response time = Completion time - Release time
= 9 – 3 = 6
Figure 1. 2: Descriptive example for some terms of RTS.
A Basic Model of RTS
7
Figure 1. 3: A Physical Model of a Real-Time System.
Figure 1. 4: A Model of a Real-Time System.
A Basic Model of RTS
8
 Sensor: A sensor converts some physical characteristic of its environment into
electrical signals. An example of a sensor is a photo-voltaic cell which converts light
energy into electrical energy.
 Actuator: An actuator is any device that takes its inputs from the output interface of a
computer and converts these electrical signals into some physical actions on its
environment. The physical actions may be in the form of motion, change thermal,
electrical. A popular actuator is a motors, heaters or pneumatic.
 Signal Condition Units: The electrical signals produced by a computer can rarely be
used to directly drive an actuator. The computer signals usually need conditioning before
the can be used the actuator. This is termed output conditioning. Similarly, input
conditioning is required to be carried out on sensor signal before they can be accepted
by the computer this is termed input conditioning.
 Interface Unit: The interface takes care of buffering and the handshake control
aspects. Analog to digital conversion are used in input interface and digital to analog
conversion are used in an output interface.
Overall Structure of RTS
9
AS shown on the Figure 1.5 the overall structure of RTS consists of:
 Hardware: (CPU, I/O devices, memory… etc.)
 A real time Operating System: function as standard OS, with predictable
behavior and well-defined functionality.
 A collection of RT tasks/processes: (share resources, communicate/
synchronize with each other and the environment).
Figure 1.5: Overall structure of RTS.
Characteristics of RTS
10
1. Time constraints.
2. New Correctness Criterion.
3. Embedded.
4. Safety-Reliability.
5. Concurrency.
6. Distributed and Feedback Structure.
7. Task Criticality.
8. Custom Hardware.
9. Reactive.
10. Stability.
11. Exception Handling.
Important Characteristics
11
1.Safety
2.Reliability
Safety and reliability are related but distinct.
1. Safety is concerned with ensuring system cannot cause damage irrespective
of whether or not it conforms to its specification.
2. Reliability is concerned with conformance to a given specification and
delivery of service.
A safe system:
• Does not cause damage even when it fails.
A reliable system:
• Operates for long time without any failure.
Types of Real-Time Systems
12
 Real-time systems are different from other systems:
 Tasks have deadlines associated with them.
 A real-time task can be classified into either hard, soft, or firm real-
time task depending on the consequences of a task missing its
deadline.
1. Hard real-time systems
2. Soft real-time systems
3. Firm real-time systems
13
Hard Real-Time Systems
 Time is very important and achieving the desired result is also important.
But if the target is achieved without time commitment, it means system
failure.
 Many of these systems are considered to be safety critical.
 An exceeds in response time leads to potential loss of life and/or big
financial damage.
 Sometimes they are “only” mission critical, with the mission being very
expensive. In general there is a cost function associated with the system.
Hard Real-Time System Examples
 Car airbag.
 Anti lock breaking system (ABS).
 Air craft control system.
Soft Real-Time Systems
14
 There are time limits, but they can be tolerated.
 The mistakes here do not lead to the damage of the system. And do not cause
a disaster.
 There is a cost associated to overrunning, but this cost may be abstract.
 Often connected to Quality-of-Service (QoS).
Soft Real-Time Systems
 Video processing.
 Digital camera.
 Mobile phones.
15
Comparison between Hard RTS and Soft RTS
Characteristics Hard RTS Soft RTS
Response Time Hard- Required Soft - Required
Peak Load Performance Predictable Degraded
Controlled by Environment Computer
Safety Critical Non Critical
Size of Data Small Large
Error Detection Autonomous User Assisted
Hard RTS Vs. Soft RTS
16
Firm Real-Time System
 Systems which are soft real-time but in which there is no benefit from late
delivery of service (which means a few missed deadlines will not lead to total
failure, but missing more than a few may lead to complete and catastrophic
system failure).
 The computation is obsolete if the job is not finished on time.
 Cost may be interpreted as loss of revenue.
 Typical example are prediction systems.
Firm Real-Time System Examples
 Video conferencing.
 Satellite-based tracking of enemy movements.
Applications of RTS
17
 Metal industry applications (Mechanical and Manufacturing Engineering).
 Electric utility monitoring and control applications (Electrical Power Engineering).
 Water plants applications (Civil and Environmental Engineering).
 Aviation and space applications (Aeronautical Engineering).
 Data Communication Applications (Electrical and Computer Engineering).
 Petrochemical applications (Chemical Engineering, Petroleum
Engineering).
18
Applications of RTS
Figure 1.6: Disciplines that impact on Real Time System Engineering
Real-Time
Systems
Control
Theory
Programming
Languages
Operations
Research
Algorithms
Queuing
Theory
Operating
Systems
Software
Engineering
Computer
Architecture
Data
Structures
Challenges of RTS
The design and implementation of real-time systems requires attention to numerous
problems. These include:
1. The selection of hardware and software.
2. Determine specification and design of real-time systems and correct
representation of temporal behavior.
3. Understanding the nuances of the programming language (s) and the real
time implications resulting from their translation into machine code.
4. Maximizing of system fault tolerance and reliability through careful
design.
5. The design and administration of tests.
6. Finally, measuring and predicting response time and reducing it.
19
Thank you for your attention!

More Related Content

What's hot (20)

PPT
Master method theorem
Rajendran
 
PPT
clock synchronization in Distributed System
Harshita Ved
 
PPTX
Pipeline processing and space time diagram
Rahul Sharma
 
PPTX
Task programming
Yogendra Tamang
 
PPTX
Input-Buffering
Dattatray Gandhmal
 
PPTX
Peephole optimization techniques in compiler design
Anul Chaudhary
 
PPTX
Sequence diagram
Rahul Pola
 
PPTX
Analytical learning
swapnac12
 
PPTX
Recognition-of-tokens
Dattatray Gandhmal
 
PPTX
Chapter 8 Operating Systems silberschatz : deadlocks
GiulianoRanauro
 
PDF
Schedule in DBMS
PratibhaRashmiSingh
 
PPTX
deadlock handling
Suraj Kumar
 
PPTX
States, state graphs and transition testing
geethawilliam
 
PPT
4. system models
AbDul ThaYyal
 
PPTX
Specification-of-tokens
Dattatray Gandhmal
 
PPTX
Product Cipher
SHUBHA CHATURVEDI
 
PPSX
Database Performance Tuning Introduction
MyOnlineITCourses
 
PPTX
serializability in dbms
Saranya Natarajan
 
PPTX
Learning set of rules
swapnac12
 
DOC
Chapter 4 (final)
Nateshwar Kamlesh
 
Master method theorem
Rajendran
 
clock synchronization in Distributed System
Harshita Ved
 
Pipeline processing and space time diagram
Rahul Sharma
 
Task programming
Yogendra Tamang
 
Input-Buffering
Dattatray Gandhmal
 
Peephole optimization techniques in compiler design
Anul Chaudhary
 
Sequence diagram
Rahul Pola
 
Analytical learning
swapnac12
 
Recognition-of-tokens
Dattatray Gandhmal
 
Chapter 8 Operating Systems silberschatz : deadlocks
GiulianoRanauro
 
Schedule in DBMS
PratibhaRashmiSingh
 
deadlock handling
Suraj Kumar
 
States, state graphs and transition testing
geethawilliam
 
4. system models
AbDul ThaYyal
 
Specification-of-tokens
Dattatray Gandhmal
 
Product Cipher
SHUBHA CHATURVEDI
 
Database Performance Tuning Introduction
MyOnlineITCourses
 
serializability in dbms
Saranya Natarajan
 
Learning set of rules
swapnac12
 
Chapter 4 (final)
Nateshwar Kamlesh
 

Similar to Concepts of Real time Systems (RTS) (20)

PPTX
Real Time and Embedded Systems Chapter 1 Handout.pptx
Lami2012
 
PDF
Survey of Real Time Scheduling Algorithms
IOSR Journals
 
PDF
RTS Short Topics
Silas Kanth
 
PPTX
Real time operating system which explains scheduling algorithms
Lavanya Sandeep
 
PPT
Real Time Systems & RTOS
Vishwa Mohan
 
PDF
International Journal of Information Technology Convergence and services (IJI...
ijitcs
 
PDF
International Journal of Information Technology Convergence and services (IJI...
ijitcs
 
PPT
EMBEDDED SYSTEMS 1
PRADEEP
 
PDF
Embedded system software
Jamia Hamdard
 
PDF
PREDICTIVE DETECTION OF KNOWN SECURITY CRITICALITIES IN CYBER PHYSICAL SYSTEM...
cscpconf
 
PPT
Real time system
Aftab Hossain
 
PPT
Real time os(suga)
Nagarajan
 
PPTX
Embedded system-1 is a first note for fourth year students
rueysoulj40
 
PDF
Benchmark methods to analyze embedded processors and systems
XMOS
 
PPTX
Real time systems 1 and 2
satya srikanth V
 
PPT
3386890.ppt
yibe5
 
PPTX
Real time operating system which explains software characteristics
Lavanya Sandeep
 
PPT
Real time-embedded-system-lec-02
University of Computer Science and Technology
 
PPT
Real time-embedded-system-lec-02
University of Computer Science and Technology
 
Real Time and Embedded Systems Chapter 1 Handout.pptx
Lami2012
 
Survey of Real Time Scheduling Algorithms
IOSR Journals
 
RTS Short Topics
Silas Kanth
 
Real time operating system which explains scheduling algorithms
Lavanya Sandeep
 
Real Time Systems & RTOS
Vishwa Mohan
 
International Journal of Information Technology Convergence and services (IJI...
ijitcs
 
International Journal of Information Technology Convergence and services (IJI...
ijitcs
 
EMBEDDED SYSTEMS 1
PRADEEP
 
Embedded system software
Jamia Hamdard
 
PREDICTIVE DETECTION OF KNOWN SECURITY CRITICALITIES IN CYBER PHYSICAL SYSTEM...
cscpconf
 
Real time system
Aftab Hossain
 
Real time os(suga)
Nagarajan
 
Embedded system-1 is a first note for fourth year students
rueysoulj40
 
Benchmark methods to analyze embedded processors and systems
XMOS
 
Real time systems 1 and 2
satya srikanth V
 
3386890.ppt
yibe5
 
Real time operating system which explains software characteristics
Lavanya Sandeep
 
Real time-embedded-system-lec-02
University of Computer Science and Technology
 
Real time-embedded-system-lec-02
University of Computer Science and Technology
 
Ad

Recently uploaded (20)

PDF
NFPA 10 - Estandar para extintores de incendios portatiles (ed.22 ENG).pdf
Oscar Orozco
 
PPSX
OOPS Concepts in Python and Exception Handling
Dr. A. B. Shinde
 
PPTX
Seminar Description: YOLO v1 (You Only Look Once).pptx
abhijithpramod20002
 
PDF
20ES1152 Programming for Problem Solving Lab Manual VRSEC.pdf
Ashutosh Satapathy
 
PPTX
L300 Technical Slide Library_Feb 2025 microsoft purview
macarenabenitez6
 
PPT
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
PDF
Clustering Algorithms - Kmeans,Min ALgorithm
Sharmila Chidaravalli
 
PPTX
Engineering Quiz ShowEngineering Quiz Show
CalvinLabial
 
PDF
this idjfk sgfdhgdhgdbhgbgrbdrwhrgbbhtgdt
WaleedAziz7
 
PPTX
Functions in Python Programming Language
BeulahS2
 
PDF
PROGRAMMING REQUESTS/RESPONSES WITH GREATFREE IN THE CLOUD ENVIRONMENT
samueljackson3773
 
PDF
Artificial intelligence,WHAT IS AI ALL ABOUT AI....pdf
Himani271945
 
PDF
Module - 5 Machine Learning-22ISE62.pdf
Dr. Shivashankar
 
PPTX
Engineering Quiz ShowEngineering Quiz Show
CalvinLabial
 
PPTX
darshai cross section and river section analysis
muk7971
 
PDF
13th International Conference of Security, Privacy and Trust Management (SPTM...
ijcisjournal
 
PDF
Información de microsoft purview herramienta de microsoft
macarenabenitez6
 
PDF
Digital water marking system project report
Kamal Acharya
 
PPTX
Numerical-Solutions-of-Ordinary-Differential-Equations.pptx
SAMUKTHAARM
 
PPTX
Distribution reservoir and service storage pptx
dhanashree78
 
NFPA 10 - Estandar para extintores de incendios portatiles (ed.22 ENG).pdf
Oscar Orozco
 
OOPS Concepts in Python and Exception Handling
Dr. A. B. Shinde
 
Seminar Description: YOLO v1 (You Only Look Once).pptx
abhijithpramod20002
 
20ES1152 Programming for Problem Solving Lab Manual VRSEC.pdf
Ashutosh Satapathy
 
L300 Technical Slide Library_Feb 2025 microsoft purview
macarenabenitez6
 
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
Clustering Algorithms - Kmeans,Min ALgorithm
Sharmila Chidaravalli
 
Engineering Quiz ShowEngineering Quiz Show
CalvinLabial
 
this idjfk sgfdhgdhgdbhgbgrbdrwhrgbbhtgdt
WaleedAziz7
 
Functions in Python Programming Language
BeulahS2
 
PROGRAMMING REQUESTS/RESPONSES WITH GREATFREE IN THE CLOUD ENVIRONMENT
samueljackson3773
 
Artificial intelligence,WHAT IS AI ALL ABOUT AI....pdf
Himani271945
 
Module - 5 Machine Learning-22ISE62.pdf
Dr. Shivashankar
 
Engineering Quiz ShowEngineering Quiz Show
CalvinLabial
 
darshai cross section and river section analysis
muk7971
 
13th International Conference of Security, Privacy and Trust Management (SPTM...
ijcisjournal
 
Información de microsoft purview herramienta de microsoft
macarenabenitez6
 
Digital water marking system project report
Kamal Acharya
 
Numerical-Solutions-of-Ordinary-Differential-Equations.pptx
SAMUKTHAARM
 
Distribution reservoir and service storage pptx
dhanashree78
 
Ad

Concepts of Real time Systems (RTS)

  • 1. Real Time System (RTS) The Islamic University Department of Computer Technical Engineering Third Class Lecturer Asst. Lec. Karrar Shakir Muttair ALNomani ‫المحاضر‬‫ه‬‫االولى‬ (‫النظري‬) 2019-2020
  • 2. Contents  Concepts of Real time Systems (RTS)  Characteristics of RTS  Types of RTS  Comparison between Types of RTS  Applications of RTS  Challenges of RTS 2
  • 3. Concepts of Real time Systems(RTS) 3 Real-time is a quantitative notion of time measured using a physical clock. Example: After a certain event occurs (temperature exceeds 50 degrees) the corresponding action (coolant shower) must complete within 100 mSec. System: As system is a mapping of a set of inputs into a set of outputs. When the internal details of the system are not of interest, the mapping function can be considered as a black box with one or more inputs entering and one or more outputs existing the system Figure 1.1. Figure 1.1: A system with (n) inputs and (m) outputs.
  • 4. 4 Terms Associated with RTS  The response-time is the time between the presentation of a set of inputs to a system and the realization of the required behavior, including the availability of all associated outputs, is called the response time of the system.  A real-time system must satisfy response-time constraints or risk severe consequences.  A failed system is a system that cannot satisfy one or more of the requirements stipulated in the formal system specification. Real time system means that the system is subjected to real time, i.e., response should be guaranteed within a specified timing constraint or system should meet the specified deadline. For example: flight control system, real time monitors etc. Concepts of Real time Systems(RTS)
  • 5. 5  Job : A job is a small piece of work that can be assigned to a processor and may or may not require resources.  Tasks: A set of related jobs that jointly provide some system functionality.  Release time of a job: It is the time at which job becomes ready for execution.  Execution time of a job: It is the time taken by job to finish its execution.  Deadline of a job: It is the time by which a job should finish its execution. Deadline is of two types: 1. Relative deadline: Deadline - Release time. 2. Absolute deadline is equal to its relative deadline plus its release time. Absolute deadline= release time + relative deadline  Response time of a job: It is the length of time from release time of a job to the instant when it finishes (Completion time). Response time of a job= Completion time - Release time Terms Associated with RTS
  • 6. 6 Terms Associated with RTS Released time = 3 Relative deadline = Deadline - Release time = 10 – 3 = 7 Absolute deadline = release time + relative deadline = 3 + 7 = 10 Response time = Completion time - Release time = 9 – 3 = 6 Figure 1. 2: Descriptive example for some terms of RTS.
  • 7. A Basic Model of RTS 7 Figure 1. 3: A Physical Model of a Real-Time System. Figure 1. 4: A Model of a Real-Time System.
  • 8. A Basic Model of RTS 8  Sensor: A sensor converts some physical characteristic of its environment into electrical signals. An example of a sensor is a photo-voltaic cell which converts light energy into electrical energy.  Actuator: An actuator is any device that takes its inputs from the output interface of a computer and converts these electrical signals into some physical actions on its environment. The physical actions may be in the form of motion, change thermal, electrical. A popular actuator is a motors, heaters or pneumatic.  Signal Condition Units: The electrical signals produced by a computer can rarely be used to directly drive an actuator. The computer signals usually need conditioning before the can be used the actuator. This is termed output conditioning. Similarly, input conditioning is required to be carried out on sensor signal before they can be accepted by the computer this is termed input conditioning.  Interface Unit: The interface takes care of buffering and the handshake control aspects. Analog to digital conversion are used in input interface and digital to analog conversion are used in an output interface.
  • 9. Overall Structure of RTS 9 AS shown on the Figure 1.5 the overall structure of RTS consists of:  Hardware: (CPU, I/O devices, memory… etc.)  A real time Operating System: function as standard OS, with predictable behavior and well-defined functionality.  A collection of RT tasks/processes: (share resources, communicate/ synchronize with each other and the environment). Figure 1.5: Overall structure of RTS.
  • 10. Characteristics of RTS 10 1. Time constraints. 2. New Correctness Criterion. 3. Embedded. 4. Safety-Reliability. 5. Concurrency. 6. Distributed and Feedback Structure. 7. Task Criticality. 8. Custom Hardware. 9. Reactive. 10. Stability. 11. Exception Handling.
  • 11. Important Characteristics 11 1.Safety 2.Reliability Safety and reliability are related but distinct. 1. Safety is concerned with ensuring system cannot cause damage irrespective of whether or not it conforms to its specification. 2. Reliability is concerned with conformance to a given specification and delivery of service. A safe system: • Does not cause damage even when it fails. A reliable system: • Operates for long time without any failure.
  • 12. Types of Real-Time Systems 12  Real-time systems are different from other systems:  Tasks have deadlines associated with them.  A real-time task can be classified into either hard, soft, or firm real- time task depending on the consequences of a task missing its deadline. 1. Hard real-time systems 2. Soft real-time systems 3. Firm real-time systems
  • 13. 13 Hard Real-Time Systems  Time is very important and achieving the desired result is also important. But if the target is achieved without time commitment, it means system failure.  Many of these systems are considered to be safety critical.  An exceeds in response time leads to potential loss of life and/or big financial damage.  Sometimes they are “only” mission critical, with the mission being very expensive. In general there is a cost function associated with the system. Hard Real-Time System Examples  Car airbag.  Anti lock breaking system (ABS).  Air craft control system.
  • 14. Soft Real-Time Systems 14  There are time limits, but they can be tolerated.  The mistakes here do not lead to the damage of the system. And do not cause a disaster.  There is a cost associated to overrunning, but this cost may be abstract.  Often connected to Quality-of-Service (QoS). Soft Real-Time Systems  Video processing.  Digital camera.  Mobile phones.
  • 15. 15 Comparison between Hard RTS and Soft RTS Characteristics Hard RTS Soft RTS Response Time Hard- Required Soft - Required Peak Load Performance Predictable Degraded Controlled by Environment Computer Safety Critical Non Critical Size of Data Small Large Error Detection Autonomous User Assisted Hard RTS Vs. Soft RTS
  • 16. 16 Firm Real-Time System  Systems which are soft real-time but in which there is no benefit from late delivery of service (which means a few missed deadlines will not lead to total failure, but missing more than a few may lead to complete and catastrophic system failure).  The computation is obsolete if the job is not finished on time.  Cost may be interpreted as loss of revenue.  Typical example are prediction systems. Firm Real-Time System Examples  Video conferencing.  Satellite-based tracking of enemy movements.
  • 17. Applications of RTS 17  Metal industry applications (Mechanical and Manufacturing Engineering).  Electric utility monitoring and control applications (Electrical Power Engineering).  Water plants applications (Civil and Environmental Engineering).  Aviation and space applications (Aeronautical Engineering).  Data Communication Applications (Electrical and Computer Engineering).  Petrochemical applications (Chemical Engineering, Petroleum Engineering).
  • 18. 18 Applications of RTS Figure 1.6: Disciplines that impact on Real Time System Engineering Real-Time Systems Control Theory Programming Languages Operations Research Algorithms Queuing Theory Operating Systems Software Engineering Computer Architecture Data Structures
  • 19. Challenges of RTS The design and implementation of real-time systems requires attention to numerous problems. These include: 1. The selection of hardware and software. 2. Determine specification and design of real-time systems and correct representation of temporal behavior. 3. Understanding the nuances of the programming language (s) and the real time implications resulting from their translation into machine code. 4. Maximizing of system fault tolerance and reliability through careful design. 5. The design and administration of tests. 6. Finally, measuring and predicting response time and reducing it. 19
  • 20. Thank you for your attention!