RTS Lecture 1 1642240037391
RTS Lecture 1 1642240037391
presentation
BITS Pilani Pawan Gupta
Pilani Campus
BITS Pilani
Pilani Campus
3
BITS Pilani, Pilani Campus
Modeling an Operating
System
Operating System is a resource allocator
– Manages all resources
– Decides conflicting requests for efficient and fair resource usage
4
BITS Pilani, Pilani Campus
Real time Systems
Real time systems are systems that need to run
continuously and take decisions in a timely manner.
Components involved
– External Sensors and Actuators
– Embedded Processors
– Output Peripherals
2 broad categories
– Open loop Systems
– Closed loop Systems
5
BITS Pilani, Pilani Campus
Real-Time and Embedded
Systems
A real-time system must deliver services in a timely manner
– Not necessarily fast, but must meet some timing
deadline
An embedded system is hidden from view within a larger
system
Many real-time and embedded systems exist, often without
the awareness of their users
– Washing machine, photocopier, mobile phone, car, aircraft, industrial plant,
microwave oven, toothbrush, CD player, medical devices, etc.
Must be able to validate real-time systems for correctness
– Some embedded real-time systems are safety critical – i.e. if they do not complete
on a timely basis, serious consequences result
– Bugs in embedded real-time systems are often difficult or expensive to fix
7
BITS Pilani, Pilani Campus
Real-Time and Embedded
Systems
Several representative classes of real time and embedded
system:
– Digital process control
– Higher-level command and control
– Tracking and signal processing
– Real-time databases
– Telephony and multimedia
11
BITS Pilani, Pilani Campus
Open Loop System
12
BITS Pilani, Pilani Campus
Closed loop Systems
13
BITS Pilani, Pilani Campus
Classification of Real time
Systems
Failure of a Real time system can bring operations to a
standstill
Embedded Systems range from day to day applications
which include toys, electric toasters, etc
2 broad categories
– Hard Real Time Systems
– Soft Real Time Systems
14
BITS Pilani, Pilani Campus
Hard and Soft Real time Systems
15
BITS Pilani, Pilani Campus
Packet Voice
Voice is digitized and sent as a sequence of packets
– Constant spacing, every 10-30ms depending on codec
• Mostly cyclic
– Most tasks execute periodically
– The system must also respond to some external events (fault
recovery and external commands) asynchronously
– Example: modern avionics and process control systems
• Asynchronous: unpredictable
– Applications that react to
asynchronous events and have tasks with high run-time complexity
– Example: intelligent real-time control systems
• Soft real-time:
– Stock trading system
– DVD player
– Mobile phone
– Etc.
24
BITS Pilani, Pilani Campus