SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Downloaden Sie, um offline zu lesen
Prepared by:
Binay Ghimire
REALTIME SYSTEMS
Binay Ghimire, course Instructor, RTS 1
Books:
 Text Book(RTS Bible):
RealTime Systems - Jane W S Liu
 Reference Materials:
-The Concise Handbook of Real-Time
Systems :Timesys Corporation
- Lecture notes/slides
- Internet resources
Binay Ghimire, course Instructor, RTS 2
INTRODUCTION
Any system in which a timely response by the
computer to the external stimuli is vital
RT System must not only produce right
answer but also meet time constraints
System that must satisfy explicit or bounded
response time constraint or risk severe
consequences including system failure
A failed system is one which cannot satisfy
one or more of the requirements laid out in
the formal system specification
INTRODUCTION
RTS
 Schedulability
-Performance must be schedulable
 Responsiveness:
-Must respond in worst case by each task
Non RTS
 Throughput
 Average case response time
 Fairness is more important than deadline
Binay Ghimire, course Instructor, RTS 4
Facts about RTS
 Predictable computing rather than fast computing
 RT Programming is not hand coded
- A number of automated tools can be used to generate
efficient codes for Real-time programs
 RT system performance engineering emphasizes more on
timeliness than the raw performance
 RT systems not necessarily work in static environment
- Rather there are a number of situations where RTS are
deployed in environment were the operating condition
changes dynamically
Binay Ghimire, course Instructor, RTS 5
EXAMPLES OF RTS
Cell phones, Digital camera , Microwave
oven
Avionics, Radar Control System, Industrial
Process Control
Command and Control
Multimedia system
ElectronicsWarhead Control System
MissileTracking System
Binay Ghimire, course Instructor, RTS 6
EXAMPLE
 MissileTracking System: System
responsiveness is faulty but calculations are
correct so target is missed
Binay Ghimire, course Instructor, RTS 7
Logical / Temporal Correctness
 If a system misses its deadline the resultant action
could be abort, continue, abandon depending upon
system option
 Real-time System is a system whose specification
includes logical / temporal correctness
 Logical correctness:
- Indicates that system must produce correct
output (must be verifiable)
Temporal correctness
- Implies that system must produce output at
correct or right time
Binay Ghimire, course Instructor, RTS 8
Characteristics of Real-time
Systems:
i. Event driven, reactive in nature (continual
interaction with the environment)
ii. Cost of failure is high
iii. Require concurrency or multiprogramming
iv. Standalone / Continuous operations
v. Reliability and fault tolerant requirements
vi. Predictable behavior
Binay Ghimire, course Instructor, RTS 9
EXAMPLE: Driving a Car
 Mission: To reach destination safely
 Controlled system: car
 Operation environment: road, traffic, other
cars
 Real-time controller : driver
 Controls: accelerator, steering wheel, brake
paddle
 Actuators: wheels, engine , brake
 CriticalTasks: braking system, steering
 Non CriticalTask: radio, cassette player
Binay Ghimire, course Instructor, RTS 10
EXAMPLE:Thermo Nuclear Power
Plant
 Two events signaled by interrupts:
i. Event is triggered by any of several signals at
various security points that will indicate a
security breach.
-The system must respond within one second
ii. Event indicates that nuclear core has
reached an over temperature
-The signal must be dealt within 1 millisecond
-Danger of meltdown if deadline is missed
Binay Ghimire, course Instructor, RTS 11
Types of Real-time Systems
 Depending upon temporal behavior of
Real-time system they can be
characterized as
hard,
soft and
firm Real-time system
Binay Ghimire, course Instructor, RTS 12
Hard Real-time System
 A system crashes if the deadline is not met by the
tasks
 A hard deadline is imposed on a job as a late result
produced by the job after the deadline may have
disastrous consequences
Binay Ghimire, course Instructor, RTS 13
Hard Real-time System
 e.g. an Onboard computer of a moving
aircraft:
- Measures the velocity , altitude, position ,
acceleration wind pressure etc
- Collects data with sensor within fixed
amount of time say 20 ms
- Compares these data against the stored
values
 There’s a stiff deadline for all these
computations
Binay Ghimire, course Instructor, RTS 14
Firm Real-time System
 System doesn’t fail but throws the
results (ignores) in case of failure
Binay Ghimire, course Instructor, RTS 15
Firm Real-time System
 Every 1/30th of sec 1 frame has to arrive
 Destination will not wait for frame to arrive but
switch over to next frame if 6th frame does not
arrive
 Hard RTS are not periodic
 Most periodic hard Real-time systems are firm
RT systems
Reset clock
Wait 20 m/s
Capture frame
If capture buffer ok (picture captured)
store frame
else repeat
Binay Ghimire, course Instructor, RTS 16
Soft Real-time System
 Here utility value becomes less/drops with time
 e.g. exam hall: Delay by 30 minutes allowed. More
delay, you will not be allowed to write the exam.
 e.g.Word processors,Airline reservation system,
games, simulations
Binay Ghimire, course Instructor, RTS 17
Digital control
 Real-time systems are usually control systems
embedded in sensors and actuators and
function as digital controllers
Binay Ghimire, course Instructor, RTS 18
Digital control
 The plant is a controlled system e.g. engine, brake,
an aircraft or a patient
 The state of the plant is monitored by sensors and
can be changed by actuators
 The Real-time (computing) system estimates from
the sensor reading the state of the plant
 Computes a control output based on the
difference between the current state and the
desired state (reference input)
 This computation is called the control law
computation of the controller
 The output thus generated activates the actuator,
which brings the plant closer to the desired state
Binay Ghimire, course Instructor, RTS 19
Sampled Data Systems
 A sampled data system typically reads and digitizes
the analog sensor readings periodically and carries
out its control law computation every period
 The sequence of digital outputs thus produced is
then converted back to an analog form, needed to
activate the actuators
 Analog sensor reading y(t) gives the measured state
of the plant at time “t‟
 If e(t) = r(t) – y(t) denote the difference between
the desired state r(t) and the measured state y(t) at
time “t‟ then:
ek = rk - yk is the kth sample value of e(t)
Binay Ghimire, course Instructor, RTS 20
Multi-Rate Systems
 A plant typically has more than one degree
of freedom
 Its state is defined by multiple state variables
(e.g. rotation, speed , temperature etc)
 These are monitored by multiple sensors
and controlled by multiple actuators
Binay Ghimire, course Instructor, RTS 21
High Level Controls
 Controllers in a complex monitor and control
system are typically organized hierarchically.
 One or more digital controllers at the lowest level
directly control the physical plant.
 Each output of a higher-level controller is a
reference input of one or more lower-level
controllers.
 Examples: Flight Management System(FMS),Air
Traffic Control(ATC), assembly robots in a factory,
patient monitoring system in an ICU.
Binay Ghimire, course Instructor, RTS 22
Hierarchical Control System
Binay Ghimire, course Instructor, RTS 23
Reference of Hierarchical control
system
 Controllers in complex monitors and control systems are typically
organized hierarchically
 One or more digital controllers at the lowest level directly controls
the physical plant while the controller at higher level provide reference
inputs to the controller at lower level
 Controllers at high level may have interface with the operator
 Example: Patient Care System
◦ LLCs are micro-processor based controllers to monitor and control
patients blood pressure, respiratory glucose and so on
◦ HLCs are expert system with operator (nurse/doctor) and provides
reference value of the health indications
 Computation done by LLC are simple accurate and deterministic while
computations done by HLC are more complex and variable.
 Periods of control law computations for LLC may range from
milliseconds to seconds
 Period of control law computations for HLC may range from minutes
to hours
Binay Ghimire, course Instructor, RTS 24
Guidance and Control
 In Flight Management System(FMS), the control activity is
handled by low level digital controller while a second level
controller performs the guidance activity such as path
planning, finding the most desirable trajectory out of the
trajectories that meet the system constraints
 The guidance function takes the constraints into
consideration such as air craft characteristics max/min,
cruise speed, descent/ascent rates etc) and environmental
characteristics (ground track, altitude, profile weather
condition)
 It may also impose various cost functions such as fuel
consumption, constrained fixed time of arrival
Binay Ghimire, course Instructor, RTS 25
Real-time Command and Control
 In control hierarchy, controllers at highest level
is a command and control system
 Air Traffic Control (ATC) system is a command
and control system
ATC system monitors the air-crafts in its coverage
area and weather condition and provide necessary
information required by the ATC system operators
Output of ATC system goes to the on board Flight
Management System. so ATC system indirectly
controls the lowest level embedded controllers
Binay Ghimire, course Instructor, RTS 26
ATC Example
Binay Ghimire, course Instructor, RTS 27
ATC Example
Binay Ghimire, course Instructor, RTS 28
ATC Example
 ATC collects information about aircrafts through radar
 Radar asks aircraft for state info and aircrafts send
data for state variables (identifier, position, altitude,
(track record) and current trajectory (track)
 ATC processes these data and stores in DB which is
picked up by display processor and surveillance
processor to inform the operator about the potential
hazards if any (collision)
 Timing requirements of command control system are
less stringent
 Low level controllers run on one or few computers
with the small network of dedicated links
 Command and control system may be a large
distributed system with hundreds of heterogeneous
computers
Binay Ghimire, course Instructor, RTS 29
Signal Processing System
 Most signal processing applications
have Real-time requirements
 Response time few millisecond to few
seconds
 e.g. Digital filtering (audio and video),
Voice and video compression and
decompression
Binay Ghimire, course Instructor, RTS 30
Radar signal processing
Binay Ghimire, course Instructor, RTS 31
Subsystems
 I/O Subsystem: Samples and digitizes the
radar echo signal and places the sampled values
in a shared memory buffer called bin
 DSP Subsystem: An array of DSP processors
processes these sample values
 Data Processing Subsystems: Processes and
analyses the DSP output to produce output to
interface with the display system commands to
control (move) the radar, and signal processing
parameters for the next cycle
Binay Ghimire, course Instructor, RTS 32
Working of a Radar System:
For object search , radar points antenna in
one direction at a time and sends a short RF
pulse, then it collects and analyzes the echo
signal
The echo signal having background noise
only indicates no object hit
If the signal hits any object at distance “x‟
and echo arrives after 2x/c
where c = 3 x 108 ie. Speed of light
Binay Ghimire, course Instructor, RTS 33
Tracking
 An application that examines all the track records in order to
sort out false returns (wrong data of presence of object) from
real ones and update the trajectories of detected objects is
called a tracker
 The tracker assigns each measured value(position and velocity)to
a trajectory.
If the trajectory is an existing one, the measured value assigned to it
gives the current position and velocity of the object moving along the
trajectory.
If the trajectory is new, the measured value gives the position and
velocity of a possible new object.
 Tracking is carried out in two steps:
i. Gating
ii. Data Association Binay Ghimire, course Instructor, RTS 34
Gating and Data Association
 Gating is the process of putting each measured value into
one of two categories established trajectories or new
one.
The gating process assigns a measured value to an established
trajectory if it is within a threshold distance G away from the
predicted current position and velocity of the object moving along
the trajectory.
 Under adverse conditions, the assignment produced by gating
may be ambiguous, that is, some measured value is assigned to
more than one trajectory or a trajectory is assigned more
than one measured value.
 The Data Association step is then carried out to complete
the assignments and resolve ambiguities. E.g. the nearest
neighbor algorithm
Binay Ghimire, course Instructor, RTS 35
Further Reading
 Refer Textbook for some more examples
on RealTime systems and their
applications
Binay Ghimire, course Instructor, RTS 36
THANKYOU
Binay Ghimire, course Instructor, RTS 37

Weitere ähnliche Inhalte

Was ist angesagt?

Approaches to real time scheduling
Approaches to real time schedulingApproaches to real time scheduling
Approaches to real time schedulingKamal Acharya
 
Operating System-Process Scheduling
Operating System-Process SchedulingOperating System-Process Scheduling
Operating System-Process SchedulingShipra Swati
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating Systemvivek223
 
Lecture6
Lecture6Lecture6
Lecture6soloeng
 
Rtos concepts
Rtos conceptsRtos concepts
Rtos conceptsanishgoel
 
Real-Time Embedded System Design
Real-Time Embedded System DesignReal-Time Embedded System Design
Real-Time Embedded System DesignJuliaAndrews11
 
presentation on real time operating system(RTOS's)
presentation on real time operating system(RTOS's)presentation on real time operating system(RTOS's)
presentation on real time operating system(RTOS's)chetan mudenoor
 
Real time operating system
Real time operating systemReal time operating system
Real time operating systemPratik Hiremath
 
Implementation of FPGA Based Image Processing Algorithm using Xilinx System G...
Implementation of FPGA Based Image Processing Algorithm using Xilinx System G...Implementation of FPGA Based Image Processing Algorithm using Xilinx System G...
Implementation of FPGA Based Image Processing Algorithm using Xilinx System G...IRJET Journal
 
#1 formal methods – introduction for software engineering
#1 formal methods – introduction for software engineering#1 formal methods – introduction for software engineering
#1 formal methods – introduction for software engineeringSharif Omar Salem
 
Process Scheduling
Process SchedulingProcess Scheduling
Process Schedulingvampugani
 
Introduction to embedded systems
Introduction  to embedded systemsIntroduction  to embedded systems
Introduction to embedded systemsRAMPRAKASHT1
 

Was ist angesagt? (20)

Approaches to real time scheduling
Approaches to real time schedulingApproaches to real time scheduling
Approaches to real time scheduling
 
Defuzzification
DefuzzificationDefuzzification
Defuzzification
 
Real time system
Real time systemReal time system
Real time system
 
Operating System-Process Scheduling
Operating System-Process SchedulingOperating System-Process Scheduling
Operating System-Process Scheduling
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating System
 
Lecture6
Lecture6Lecture6
Lecture6
 
Rtos concepts
Rtos conceptsRtos concepts
Rtos concepts
 
Real-Time Embedded System Design
Real-Time Embedded System DesignReal-Time Embedded System Design
Real-Time Embedded System Design
 
Real-Time Operating Systems
Real-Time Operating SystemsReal-Time Operating Systems
Real-Time Operating Systems
 
presentation on real time operating system(RTOS's)
presentation on real time operating system(RTOS's)presentation on real time operating system(RTOS's)
presentation on real time operating system(RTOS's)
 
Unit7: Production System
Unit7: Production SystemUnit7: Production System
Unit7: Production System
 
Real time operating system
Real time operating systemReal time operating system
Real time operating system
 
Implementation of FPGA Based Image Processing Algorithm using Xilinx System G...
Implementation of FPGA Based Image Processing Algorithm using Xilinx System G...Implementation of FPGA Based Image Processing Algorithm using Xilinx System G...
Implementation of FPGA Based Image Processing Algorithm using Xilinx System G...
 
Soft computing
Soft computingSoft computing
Soft computing
 
Real Time Systems
Real Time SystemsReal Time Systems
Real Time Systems
 
#1 formal methods – introduction for software engineering
#1 formal methods – introduction for software engineering#1 formal methods – introduction for software engineering
#1 formal methods – introduction for software engineering
 
Rtos Concepts
Rtos ConceptsRtos Concepts
Rtos Concepts
 
Applications of hybrid systems
Applications of hybrid systemsApplications of hybrid systems
Applications of hybrid systems
 
Process Scheduling
Process SchedulingProcess Scheduling
Process Scheduling
 
Introduction to embedded systems
Introduction  to embedded systemsIntroduction  to embedded systems
Introduction to embedded systems
 

Andere mochten auch

A 420uW 100GHz-GBW CMOS Programmable-Gain Amplifier Leveraging the Cross-Coup...
A 420uW 100GHz-GBW CMOS Programmable-Gain Amplifier Leveraging the Cross-Coup...A 420uW 100GHz-GBW CMOS Programmable-Gain Amplifier Leveraging the Cross-Coup...
A 420uW 100GHz-GBW CMOS Programmable-Gain Amplifier Leveraging the Cross-Coup...aiclab
 
Alimentación balanceada
Alimentación balanceadaAlimentación balanceada
Alimentación balanceadaandreina-28
 
CURRICULUM VITAE OF Lulamile Lux Ncapayi
CURRICULUM VITAE OF Lulamile Lux NcapayiCURRICULUM VITAE OF Lulamile Lux Ncapayi
CURRICULUM VITAE OF Lulamile Lux NcapayiLulamile Ncapayi
 
Santa ana, mi tierra. slideshare.
Santa ana, mi tierra. slideshare.Santa ana, mi tierra. slideshare.
Santa ana, mi tierra. slideshare.Gianni Jimenez
 
Imagenes animacion
Imagenes animacionImagenes animacion
Imagenes animacionbritany29
 
Tipos de energía
Tipos de energía Tipos de energía
Tipos de energía Aras Heviman
 
Codes and conventions of pop
Codes and conventions of popCodes and conventions of pop
Codes and conventions of popCaitlin Jackson
 
Jude the obscure
Jude the obscureJude the obscure
Jude the obscureAhmed Said
 
Meaning of unemployment
Meaning of unemploymentMeaning of unemployment
Meaning of unemploymentdikshaj1414
 

Andere mochten auch (10)

A 420uW 100GHz-GBW CMOS Programmable-Gain Amplifier Leveraging the Cross-Coup...
A 420uW 100GHz-GBW CMOS Programmable-Gain Amplifier Leveraging the Cross-Coup...A 420uW 100GHz-GBW CMOS Programmable-Gain Amplifier Leveraging the Cross-Coup...
A 420uW 100GHz-GBW CMOS Programmable-Gain Amplifier Leveraging the Cross-Coup...
 
Lf project
Lf projectLf project
Lf project
 
Alimentación balanceada
Alimentación balanceadaAlimentación balanceada
Alimentación balanceada
 
CURRICULUM VITAE OF Lulamile Lux Ncapayi
CURRICULUM VITAE OF Lulamile Lux NcapayiCURRICULUM VITAE OF Lulamile Lux Ncapayi
CURRICULUM VITAE OF Lulamile Lux Ncapayi
 
Santa ana, mi tierra. slideshare.
Santa ana, mi tierra. slideshare.Santa ana, mi tierra. slideshare.
Santa ana, mi tierra. slideshare.
 
Imagenes animacion
Imagenes animacionImagenes animacion
Imagenes animacion
 
Tipos de energía
Tipos de energía Tipos de energía
Tipos de energía
 
Codes and conventions of pop
Codes and conventions of popCodes and conventions of pop
Codes and conventions of pop
 
Jude the obscure
Jude the obscureJude the obscure
Jude the obscure
 
Meaning of unemployment
Meaning of unemploymentMeaning of unemployment
Meaning of unemployment
 

Ähnlich wie Realtime systems chapter 1

5107368.ppt
5107368.ppt5107368.ppt
5107368.pptyibe5
 
Pe 3032 wk 1 introduction to control system march 04e
Pe 3032 wk 1 introduction to control system  march 04ePe 3032 wk 1 introduction to control system  march 04e
Pe 3032 wk 1 introduction to control system march 04eCharlton Inao
 
EMBEDDED SYSTEMS 1
EMBEDDED SYSTEMS 1EMBEDDED SYSTEMS 1
EMBEDDED SYSTEMS 1PRADEEP
 
Air traffic control
Air traffic controlAir traffic control
Air traffic controlRishu Seth
 
Lecture Notes: EEEC4340318 Instrumentation and Control Systems - Introductio...
Lecture Notes:  EEEC4340318 Instrumentation and Control Systems - Introductio...Lecture Notes:  EEEC4340318 Instrumentation and Control Systems - Introductio...
Lecture Notes: EEEC4340318 Instrumentation and Control Systems - Introductio...AIMST University
 
Industrial Control System.pptx
Industrial Control System.pptxIndustrial Control System.pptx
Industrial Control System.pptxTALHARIAZ46
 
Industrial Control System.pptx
Industrial Control System.pptxIndustrial Control System.pptx
Industrial Control System.pptxTALHARIAZ46
 
Introduction to Digital Computer Control System
Introduction to Digital Computer Control SystemIntroduction to Digital Computer Control System
Introduction to Digital Computer Control Systemturna67
 
DefCon_2015_Slides_Krotofil_Larsen
DefCon_2015_Slides_Krotofil_LarsenDefCon_2015_Slides_Krotofil_Larsen
DefCon_2015_Slides_Krotofil_LarsenMarina Krotofil
 
Bag 1 pengenalan sistem kontrol
Bag 1 pengenalan sistem kontrolBag 1 pengenalan sistem kontrol
Bag 1 pengenalan sistem kontrolHIMTI
 
Intoduction to control system
Intoduction to control systemIntoduction to control system
Intoduction to control systemjaimin kemkar
 

Ähnlich wie Realtime systems chapter 1 (20)

Real Time System
Real Time SystemReal Time System
Real Time System
 
5107368.ppt
5107368.ppt5107368.ppt
5107368.ppt
 
Pe 3032 wk 1 introduction to control system march 04e
Pe 3032 wk 1 introduction to control system  march 04ePe 3032 wk 1 introduction to control system  march 04e
Pe 3032 wk 1 introduction to control system march 04e
 
Ch20
Ch20Ch20
Ch20
 
Lec 5 pid
Lec 5 pidLec 5 pid
Lec 5 pid
 
EMBEDDED SYSTEMS 1
EMBEDDED SYSTEMS 1EMBEDDED SYSTEMS 1
EMBEDDED SYSTEMS 1
 
Control system
Control systemControl system
Control system
 
Air traffic control
Air traffic controlAir traffic control
Air traffic control
 
Lecture Notes: EEEC4340318 Instrumentation and Control Systems - Introductio...
Lecture Notes:  EEEC4340318 Instrumentation and Control Systems - Introductio...Lecture Notes:  EEEC4340318 Instrumentation and Control Systems - Introductio...
Lecture Notes: EEEC4340318 Instrumentation and Control Systems - Introductio...
 
Pid controller
Pid controllerPid controller
Pid controller
 
Industrial Control System.pptx
Industrial Control System.pptxIndustrial Control System.pptx
Industrial Control System.pptx
 
Industrial Control System.pptx
Industrial Control System.pptxIndustrial Control System.pptx
Industrial Control System.pptx
 
Introduction to Digital Computer Control System
Introduction to Digital Computer Control SystemIntroduction to Digital Computer Control System
Introduction to Digital Computer Control System
 
DefCon_2015_Slides_Krotofil_Larsen
DefCon_2015_Slides_Krotofil_LarsenDefCon_2015_Slides_Krotofil_Larsen
DefCon_2015_Slides_Krotofil_Larsen
 
Bag 1 pengenalan sistem kontrol
Bag 1 pengenalan sistem kontrolBag 1 pengenalan sistem kontrol
Bag 1 pengenalan sistem kontrol
 
5_2018_12_17!10_45_47_AM.ppt
5_2018_12_17!10_45_47_AM.ppt5_2018_12_17!10_45_47_AM.ppt
5_2018_12_17!10_45_47_AM.ppt
 
Automatic Dialing Alert System / Remote Indication System
Automatic Dialing Alert System / Remote Indication SystemAutomatic Dialing Alert System / Remote Indication System
Automatic Dialing Alert System / Remote Indication System
 
At4201308314
At4201308314At4201308314
At4201308314
 
Intoduction to control system
Intoduction to control systemIntoduction to control system
Intoduction to control system
 
Automated Process control.ppt
Automated Process control.pptAutomated Process control.ppt
Automated Process control.ppt
 

Kürzlich hochgeladen

BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 

Kürzlich hochgeladen (20)

BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 

Realtime systems chapter 1

  • 1. Prepared by: Binay Ghimire REALTIME SYSTEMS Binay Ghimire, course Instructor, RTS 1
  • 2. Books:  Text Book(RTS Bible): RealTime Systems - Jane W S Liu  Reference Materials: -The Concise Handbook of Real-Time Systems :Timesys Corporation - Lecture notes/slides - Internet resources Binay Ghimire, course Instructor, RTS 2
  • 3. INTRODUCTION Any system in which a timely response by the computer to the external stimuli is vital RT System must not only produce right answer but also meet time constraints System that must satisfy explicit or bounded response time constraint or risk severe consequences including system failure A failed system is one which cannot satisfy one or more of the requirements laid out in the formal system specification
  • 4. INTRODUCTION RTS  Schedulability -Performance must be schedulable  Responsiveness: -Must respond in worst case by each task Non RTS  Throughput  Average case response time  Fairness is more important than deadline Binay Ghimire, course Instructor, RTS 4
  • 5. Facts about RTS  Predictable computing rather than fast computing  RT Programming is not hand coded - A number of automated tools can be used to generate efficient codes for Real-time programs  RT system performance engineering emphasizes more on timeliness than the raw performance  RT systems not necessarily work in static environment - Rather there are a number of situations where RTS are deployed in environment were the operating condition changes dynamically Binay Ghimire, course Instructor, RTS 5
  • 6. EXAMPLES OF RTS Cell phones, Digital camera , Microwave oven Avionics, Radar Control System, Industrial Process Control Command and Control Multimedia system ElectronicsWarhead Control System MissileTracking System Binay Ghimire, course Instructor, RTS 6
  • 7. EXAMPLE  MissileTracking System: System responsiveness is faulty but calculations are correct so target is missed Binay Ghimire, course Instructor, RTS 7
  • 8. Logical / Temporal Correctness  If a system misses its deadline the resultant action could be abort, continue, abandon depending upon system option  Real-time System is a system whose specification includes logical / temporal correctness  Logical correctness: - Indicates that system must produce correct output (must be verifiable) Temporal correctness - Implies that system must produce output at correct or right time Binay Ghimire, course Instructor, RTS 8
  • 9. Characteristics of Real-time Systems: i. Event driven, reactive in nature (continual interaction with the environment) ii. Cost of failure is high iii. Require concurrency or multiprogramming iv. Standalone / Continuous operations v. Reliability and fault tolerant requirements vi. Predictable behavior Binay Ghimire, course Instructor, RTS 9
  • 10. EXAMPLE: Driving a Car  Mission: To reach destination safely  Controlled system: car  Operation environment: road, traffic, other cars  Real-time controller : driver  Controls: accelerator, steering wheel, brake paddle  Actuators: wheels, engine , brake  CriticalTasks: braking system, steering  Non CriticalTask: radio, cassette player Binay Ghimire, course Instructor, RTS 10
  • 11. EXAMPLE:Thermo Nuclear Power Plant  Two events signaled by interrupts: i. Event is triggered by any of several signals at various security points that will indicate a security breach. -The system must respond within one second ii. Event indicates that nuclear core has reached an over temperature -The signal must be dealt within 1 millisecond -Danger of meltdown if deadline is missed Binay Ghimire, course Instructor, RTS 11
  • 12. Types of Real-time Systems  Depending upon temporal behavior of Real-time system they can be characterized as hard, soft and firm Real-time system Binay Ghimire, course Instructor, RTS 12
  • 13. Hard Real-time System  A system crashes if the deadline is not met by the tasks  A hard deadline is imposed on a job as a late result produced by the job after the deadline may have disastrous consequences Binay Ghimire, course Instructor, RTS 13
  • 14. Hard Real-time System  e.g. an Onboard computer of a moving aircraft: - Measures the velocity , altitude, position , acceleration wind pressure etc - Collects data with sensor within fixed amount of time say 20 ms - Compares these data against the stored values  There’s a stiff deadline for all these computations Binay Ghimire, course Instructor, RTS 14
  • 15. Firm Real-time System  System doesn’t fail but throws the results (ignores) in case of failure Binay Ghimire, course Instructor, RTS 15
  • 16. Firm Real-time System  Every 1/30th of sec 1 frame has to arrive  Destination will not wait for frame to arrive but switch over to next frame if 6th frame does not arrive  Hard RTS are not periodic  Most periodic hard Real-time systems are firm RT systems Reset clock Wait 20 m/s Capture frame If capture buffer ok (picture captured) store frame else repeat Binay Ghimire, course Instructor, RTS 16
  • 17. Soft Real-time System  Here utility value becomes less/drops with time  e.g. exam hall: Delay by 30 minutes allowed. More delay, you will not be allowed to write the exam.  e.g.Word processors,Airline reservation system, games, simulations Binay Ghimire, course Instructor, RTS 17
  • 18. Digital control  Real-time systems are usually control systems embedded in sensors and actuators and function as digital controllers Binay Ghimire, course Instructor, RTS 18
  • 19. Digital control  The plant is a controlled system e.g. engine, brake, an aircraft or a patient  The state of the plant is monitored by sensors and can be changed by actuators  The Real-time (computing) system estimates from the sensor reading the state of the plant  Computes a control output based on the difference between the current state and the desired state (reference input)  This computation is called the control law computation of the controller  The output thus generated activates the actuator, which brings the plant closer to the desired state Binay Ghimire, course Instructor, RTS 19
  • 20. Sampled Data Systems  A sampled data system typically reads and digitizes the analog sensor readings periodically and carries out its control law computation every period  The sequence of digital outputs thus produced is then converted back to an analog form, needed to activate the actuators  Analog sensor reading y(t) gives the measured state of the plant at time “t‟  If e(t) = r(t) – y(t) denote the difference between the desired state r(t) and the measured state y(t) at time “t‟ then: ek = rk - yk is the kth sample value of e(t) Binay Ghimire, course Instructor, RTS 20
  • 21. Multi-Rate Systems  A plant typically has more than one degree of freedom  Its state is defined by multiple state variables (e.g. rotation, speed , temperature etc)  These are monitored by multiple sensors and controlled by multiple actuators Binay Ghimire, course Instructor, RTS 21
  • 22. High Level Controls  Controllers in a complex monitor and control system are typically organized hierarchically.  One or more digital controllers at the lowest level directly control the physical plant.  Each output of a higher-level controller is a reference input of one or more lower-level controllers.  Examples: Flight Management System(FMS),Air Traffic Control(ATC), assembly robots in a factory, patient monitoring system in an ICU. Binay Ghimire, course Instructor, RTS 22
  • 23. Hierarchical Control System Binay Ghimire, course Instructor, RTS 23
  • 24. Reference of Hierarchical control system  Controllers in complex monitors and control systems are typically organized hierarchically  One or more digital controllers at the lowest level directly controls the physical plant while the controller at higher level provide reference inputs to the controller at lower level  Controllers at high level may have interface with the operator  Example: Patient Care System ◦ LLCs are micro-processor based controllers to monitor and control patients blood pressure, respiratory glucose and so on ◦ HLCs are expert system with operator (nurse/doctor) and provides reference value of the health indications  Computation done by LLC are simple accurate and deterministic while computations done by HLC are more complex and variable.  Periods of control law computations for LLC may range from milliseconds to seconds  Period of control law computations for HLC may range from minutes to hours Binay Ghimire, course Instructor, RTS 24
  • 25. Guidance and Control  In Flight Management System(FMS), the control activity is handled by low level digital controller while a second level controller performs the guidance activity such as path planning, finding the most desirable trajectory out of the trajectories that meet the system constraints  The guidance function takes the constraints into consideration such as air craft characteristics max/min, cruise speed, descent/ascent rates etc) and environmental characteristics (ground track, altitude, profile weather condition)  It may also impose various cost functions such as fuel consumption, constrained fixed time of arrival Binay Ghimire, course Instructor, RTS 25
  • 26. Real-time Command and Control  In control hierarchy, controllers at highest level is a command and control system  Air Traffic Control (ATC) system is a command and control system ATC system monitors the air-crafts in its coverage area and weather condition and provide necessary information required by the ATC system operators Output of ATC system goes to the on board Flight Management System. so ATC system indirectly controls the lowest level embedded controllers Binay Ghimire, course Instructor, RTS 26
  • 27. ATC Example Binay Ghimire, course Instructor, RTS 27
  • 28. ATC Example Binay Ghimire, course Instructor, RTS 28
  • 29. ATC Example  ATC collects information about aircrafts through radar  Radar asks aircraft for state info and aircrafts send data for state variables (identifier, position, altitude, (track record) and current trajectory (track)  ATC processes these data and stores in DB which is picked up by display processor and surveillance processor to inform the operator about the potential hazards if any (collision)  Timing requirements of command control system are less stringent  Low level controllers run on one or few computers with the small network of dedicated links  Command and control system may be a large distributed system with hundreds of heterogeneous computers Binay Ghimire, course Instructor, RTS 29
  • 30. Signal Processing System  Most signal processing applications have Real-time requirements  Response time few millisecond to few seconds  e.g. Digital filtering (audio and video), Voice and video compression and decompression Binay Ghimire, course Instructor, RTS 30
  • 31. Radar signal processing Binay Ghimire, course Instructor, RTS 31
  • 32. Subsystems  I/O Subsystem: Samples and digitizes the radar echo signal and places the sampled values in a shared memory buffer called bin  DSP Subsystem: An array of DSP processors processes these sample values  Data Processing Subsystems: Processes and analyses the DSP output to produce output to interface with the display system commands to control (move) the radar, and signal processing parameters for the next cycle Binay Ghimire, course Instructor, RTS 32
  • 33. Working of a Radar System: For object search , radar points antenna in one direction at a time and sends a short RF pulse, then it collects and analyzes the echo signal The echo signal having background noise only indicates no object hit If the signal hits any object at distance “x‟ and echo arrives after 2x/c where c = 3 x 108 ie. Speed of light Binay Ghimire, course Instructor, RTS 33
  • 34. Tracking  An application that examines all the track records in order to sort out false returns (wrong data of presence of object) from real ones and update the trajectories of detected objects is called a tracker  The tracker assigns each measured value(position and velocity)to a trajectory. If the trajectory is an existing one, the measured value assigned to it gives the current position and velocity of the object moving along the trajectory. If the trajectory is new, the measured value gives the position and velocity of a possible new object.  Tracking is carried out in two steps: i. Gating ii. Data Association Binay Ghimire, course Instructor, RTS 34
  • 35. Gating and Data Association  Gating is the process of putting each measured value into one of two categories established trajectories or new one. The gating process assigns a measured value to an established trajectory if it is within a threshold distance G away from the predicted current position and velocity of the object moving along the trajectory.  Under adverse conditions, the assignment produced by gating may be ambiguous, that is, some measured value is assigned to more than one trajectory or a trajectory is assigned more than one measured value.  The Data Association step is then carried out to complete the assignments and resolve ambiguities. E.g. the nearest neighbor algorithm Binay Ghimire, course Instructor, RTS 35
  • 36. Further Reading  Refer Textbook for some more examples on RealTime systems and their applications Binay Ghimire, course Instructor, RTS 36
  • 37. THANKYOU Binay Ghimire, course Instructor, RTS 37