SlideShare a Scribd company logo
Real Time System
Akansh Singhal
1402931009
Definition
• A real-time system is a type of hardware or software that operates with a time
constraint.
• The correctness of real-time system depends not only on logical results but also
on time.
• If real time system exceeds the time bonds it results in performance degradation
and/or malfunction of system.
• There are two types of real time system:
o Hard Real Time System
o Soft Real Time System
• Most of the embedded system are real time system.
• Example: Aircraft Traffic control, Boilers, Digital Controller, Telecommunication.
A/D
A/D
Sensor
Control Flow
Computation
Plant
D/A
Actuator
R(k)
Y(k)
R(t)
Y(t)
Y(k)
Digital Controller
Block Diagram
R(t) Reference Input
Contd…
E(t)=R(t)-Y(t)
Where R(t) is desired state.
Y(t) is measured state.
E(t) is error variable.
double PID(double In)
{
Out=P_gain*In_Igain*Insum+D_gain*InDiff;
Insum+=In;
InDiff=In-Inold;
Inold=In;
return out;
}
Implementation of Digital controller in C
A Digital Controller:
• Obtain I/P values from sensors.
• Can store state variables.
• Dynamic Parameters are known.
Formula:
Hard Real time system vs Soft Real Time System
S.No Parameter Hard Real Time System Soft Real Time System
1 Safety Critical Non Critical
2 Load Performance Predictable Degraded
3 File Size Small/Medium Large
4 Data Integrity Short Term Long Term
5 Redundancy Time Hard Required Soft Required
6 Error Detection Autonomus User assisted
7 Example Air Traffic Control Telecom
Issues in Real Time Computing
• Architectural Issues:-
 Processor Issues
 Network Issues
 Architecture for clock synchronization
 Reliability Evaluation
• Operating System Issues:-
 Task Assignment and Scheduling
 Communication Protocol
 Failure Management and Recovery
 Clock Synchronization
• Other Issues:-
 Programming Language Issues
 Database
 Performance Measures
Applications of Real Time
System
• Metal Industry
• Aviation
• Water Plant
• Petro Chemical
Air Traffic Control
Terminologies Related
• Task: Unit of Computations a processor executes.
• Job: Any instance of task is called of job. Its functionality is defined in task.
• Jitter Time: The task release in a range of time from {r-,r+}
• Release Time: It is instant of time at which job become available for execution.
• Deadline: It is instant of time by which its execution is required to be complete.
• Sporadic Release time: The job is released at random time for execution.
• Phase: Shifted release time of first job in task Ѱ
• Feasibility Interval: It is interval between release time and deadline {r,D}.
TasJ1.1 J1.2 J1.3 J1.4 J1.5 ------------ J1.nTask1
Task States
Suspended
Ready
Blocked
Running
Suspend Called
Suspended called
Scheduled
Block
Suspend Called
Schedulers
• A scheduler schedules job in their order of job execution.
• The components of schedulers are Heap, Timer, Task Memory.
Heap
Task Memory Task Memory
Timer
• The timer expiries at scheduling point. Job from task T is then scheduled from task T at time t.
Scheduler
Proficient
Equally
proficient
Optimal
Scheduling
Tasks FIFO QUEUE Execute
U=
𝒆𝟏+𝒆𝟐−−−𝒆𝒏
(𝒑𝟏+𝒑𝟐−−−𝒑𝒏)
• Scheduling is the process to schedule the task which are ready for execution.
• Scheduling point is a point at which scheduler takes decision regarding
which task to be run next.
• The CPU Utilization can be calculated as:-
Types of Scheduling in RTOS
Scheduling
Static or Offline
Clock Driven Cyclic
Dynamic or Online
Earliest deadline First
Or
Dynamic Priority
Algorithm
Rate Monotonic
or
Static Priority
Algorithm
Clock Driven Scheduling
• The job list as well as which task to be run for how long may be stored in a table.
• For scheduling n periodic tasks the scheduler develops a permanent schedule for
a period LCM(p1,p2,p3…..pn).
• Each time we have to set timer.
Task Start Time Stop time
T1 0 100
T2 101 150
T3 151 225
Pro: Time efficient, Simple and flexible.
Con: Can not handle sporadic or aperiodic task.
Cyclic Scheduler
• This scheduler deals with the major and minor cycle (frame).
• Repeat a precomputed cycle.
• A major cycle is divided into minor cycles called frame
• Major cycle=LCM(p1,p2,p3----pn) can be greater than LCM if F do not divide it evenly.
Major Cycle Major Cycle
Frames
𝟐 ∗ 𝐟 − 𝐠𝐜𝐝 𝒑𝒊, 𝒇 ≤ 𝑫𝒊
• The frame size should be greater than each task size 𝑓 ≥ max 𝑒𝑖 . This is for minimum context switch
• To minimize table size the frame size should squarely divide major cycle.
• The time constraint for each task based on deadline and release time is given with formula:-
Condition to choose frame size:-
Event Driven Scheduling:
• Can handle both sporadic and aperiodic task.
• Each task have some sort of priority that may be fixed or assigned at run time.
Earliest Deadline First:
• The Task priorities are assigned dynamically while execution.
• This scheduling is optimal but not used commercially.
• A task with reaching deadline has higher priority than the other tasks.
• This scheduling is best in uniprocessor, independent and non shareable
processors.
• The utilization U is less than 1.
• The major disadvantages are
o Runtime efficiency
o Resource sharing create problem
o Transient Overload Handling Problem
Gantt Chart for EDF
Rate Monotonic Algorithm
• The priority of task is proportional to frequency
• This is widely used algorithm and one of the optimal one
• The priorities in this scheduling are fixed
• The scheduling is preemptive one
• Task with shortest period get higher priority
Assumptions:-
• All task are periodic and not synchronize with other
• All process must have a release time equal to 0
Frequency
Priority
• It consider optimal in the sense that if set of processes can not be scheduled by this algorithm, It
can not be scheduled by any other scheduling algorithm
• Despite being optimal, RMA has bounded CPU utilization. The worst case CPU Utilization for
scheduling N processes is 2(2
1
𝑛 − 1).
• As number of process approaches infinity, CPU utilization fall approximately 69%
Thank You

More Related Content

What's hot

Real-Time Scheduling
Real-Time SchedulingReal-Time Scheduling
Real-Time Scheduling
sathish sak
 
Reference model of real time system
Reference model of real time systemReference model of real time system
Reference model of real time system
Kamal Acharya
 
Approaches to real time scheduling
Approaches to real time schedulingApproaches to real time scheduling
Approaches to real time scheduling
Kamal Acharya
 
Clock driven scheduling
Clock driven schedulingClock driven scheduling
Clock driven scheduling
Kamal Acharya
 
RTOS
RTOSRTOS
Reference Model of Real Time System
Reference Model of Real Time SystemReference Model of Real Time System
Reference Model of Real Time System
Raaz Karkee
 
Real time-system
Real time-systemReal time-system
Real time-system
ysush
 
Commonly used Approaches to Real Time Scheduling
Commonly used Approaches to Real Time SchedulingCommonly used Approaches to Real Time Scheduling
Commonly used Approaches to Real Time Scheduling
Raaz Karkee
 
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time SystemsSara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
knowdiff
 
Real Time most famous algorithms
Real Time most famous algorithmsReal Time most famous algorithms
Real Time most famous algorithms
Andrea Tino
 
Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
University of Computer Science and Technology
 
RR and priority scheduling
RR and priority schedulingRR and priority scheduling
RR and priority scheduling
A. S. M. Shafi
 
Survey of Real Time Scheduling Algorithms
Survey of Real Time Scheduling AlgorithmsSurvey of Real Time Scheduling Algorithms
Survey of Real Time Scheduling Algorithms
IOSR Journals
 
Functional Parameter & Scheduling Hierarchy | Real Time System
Functional Parameter & Scheduling Hierarchy | Real Time SystemFunctional Parameter & Scheduling Hierarchy | Real Time System
Functional Parameter & Scheduling Hierarchy | Real Time System
shubham ghimire
 
Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...
Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...
Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...
Editor IJMTER
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
Riya Choudhary
 
Scheduling
SchedulingScheduling
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
mohsinalilarik1
 

What's hot (20)

Real-Time Scheduling
Real-Time SchedulingReal-Time Scheduling
Real-Time Scheduling
 
Reference model of real time system
Reference model of real time systemReference model of real time system
Reference model of real time system
 
Approaches to real time scheduling
Approaches to real time schedulingApproaches to real time scheduling
Approaches to real time scheduling
 
Periodic
PeriodicPeriodic
Periodic
 
Clock driven scheduling
Clock driven schedulingClock driven scheduling
Clock driven scheduling
 
RTOS
RTOSRTOS
RTOS
 
Reference Model of Real Time System
Reference Model of Real Time SystemReference Model of Real Time System
Reference Model of Real Time System
 
Real time-system
Real time-systemReal time-system
Real time-system
 
Commonly used Approaches to Real Time Scheduling
Commonly used Approaches to Real Time SchedulingCommonly used Approaches to Real Time Scheduling
Commonly used Approaches to Real Time Scheduling
 
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time SystemsSara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
 
Real Time most famous algorithms
Real Time most famous algorithmsReal Time most famous algorithms
Real Time most famous algorithms
 
Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
 
RR and priority scheduling
RR and priority schedulingRR and priority scheduling
RR and priority scheduling
 
Planificacion
PlanificacionPlanificacion
Planificacion
 
Survey of Real Time Scheduling Algorithms
Survey of Real Time Scheduling AlgorithmsSurvey of Real Time Scheduling Algorithms
Survey of Real Time Scheduling Algorithms
 
Functional Parameter & Scheduling Hierarchy | Real Time System
Functional Parameter & Scheduling Hierarchy | Real Time SystemFunctional Parameter & Scheduling Hierarchy | Real Time System
Functional Parameter & Scheduling Hierarchy | Real Time System
 
Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...
Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...
Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
Scheduling
SchedulingScheduling
Scheduling
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
 

Similar to Real Time System

ESC UNIT 3.ppt
ESC UNIT 3.pptESC UNIT 3.ppt
ESC UNIT 3.ppt
Sarvesh Warjurkar
 
Resource Management in (Embedded) Real-Time Systems
Resource Management in (Embedded) Real-Time SystemsResource Management in (Embedded) Real-Time Systems
Resource Management in (Embedded) Real-Time Systems
jeronimored
 
Real-Time Operating Systems
Real-Time Operating SystemsReal-Time Operating Systems
Real-Time Operating Systems
Praveen Penumathsa
 
Round Robin Algorithm.pptx
Round Robin Algorithm.pptxRound Robin Algorithm.pptx
Round Robin Algorithm.pptx
Sanad Bhowmik
 
multiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.pptmultiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.ppt
naghamallella
 
Distributed systems scheduling
Distributed systems schedulingDistributed systems scheduling
Distributed systems scheduling
Pragati Startup Presentation Designer firm
 
13009690.ppt
13009690.ppt13009690.ppt
13009690.ppt
ssuser4ca1eb
 
Fdp embedded systems
Fdp embedded systemsFdp embedded systems
Fdp embedded systems
Kavya G
 
ch_scheduling (1).ppt
ch_scheduling (1).pptch_scheduling (1).ppt
ch_scheduling (1).ppt
Farhanahmad540205
 
Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
University of Computer Science and Technology
 
Operating Systems 1 (10/12) - Scheduling
Operating Systems 1 (10/12) - SchedulingOperating Systems 1 (10/12) - Scheduling
Operating Systems 1 (10/12) - Scheduling
Peter Tröger
 
ERTS UNIT 5.pptx
ERTS UNIT 5.pptxERTS UNIT 5.pptx
ERTS UNIT 5.pptx
Pavithra525349
 
Embedded system scheduling Algorithm .pptx
Embedded system scheduling Algorithm .pptxEmbedded system scheduling Algorithm .pptx
Embedded system scheduling Algorithm .pptx
Swati Shekapure
 
Real time operating system
Real time operating systemReal time operating system
Real time operating system
Khuram Shahzad
 
OS Process Chapter 3.pdf
OS Process Chapter 3.pdfOS Process Chapter 3.pdf
OS Process Chapter 3.pdf
Kp Sharma
 
Chap 4.ppt
Chap 4.pptChap 4.ppt
Chap 4.ppt
Tigabu Yaya
 
programming .pptx
programming .pptxprogramming .pptx
programming .pptx
SHUJEHASSAN
 

Similar to Real Time System (20)

ESC UNIT 3.ppt
ESC UNIT 3.pptESC UNIT 3.ppt
ESC UNIT 3.ppt
 
Real time system tsp
Real time system tspReal time system tsp
Real time system tsp
 
Resource Management in (Embedded) Real-Time Systems
Resource Management in (Embedded) Real-Time SystemsResource Management in (Embedded) Real-Time Systems
Resource Management in (Embedded) Real-Time Systems
 
Real-Time Operating Systems
Real-Time Operating SystemsReal-Time Operating Systems
Real-Time Operating Systems
 
Round Robin Algorithm.pptx
Round Robin Algorithm.pptxRound Robin Algorithm.pptx
Round Robin Algorithm.pptx
 
multiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.pptmultiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.ppt
 
Distributed systems scheduling
Distributed systems schedulingDistributed systems scheduling
Distributed systems scheduling
 
13009690.ppt
13009690.ppt13009690.ppt
13009690.ppt
 
Fdp embedded systems
Fdp embedded systemsFdp embedded systems
Fdp embedded systems
 
ch_scheduling (1).ppt
ch_scheduling (1).pptch_scheduling (1).ppt
ch_scheduling (1).ppt
 
Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
 
Operating Systems 1 (10/12) - Scheduling
Operating Systems 1 (10/12) - SchedulingOperating Systems 1 (10/12) - Scheduling
Operating Systems 1 (10/12) - Scheduling
 
ERTS UNIT 5.pptx
ERTS UNIT 5.pptxERTS UNIT 5.pptx
ERTS UNIT 5.pptx
 
Embedded system scheduling Algorithm .pptx
Embedded system scheduling Algorithm .pptxEmbedded system scheduling Algorithm .pptx
Embedded system scheduling Algorithm .pptx
 
Os2
Os2Os2
Os2
 
Real time operating system
Real time operating systemReal time operating system
Real time operating system
 
OS Process Chapter 3.pdf
OS Process Chapter 3.pdfOS Process Chapter 3.pdf
OS Process Chapter 3.pdf
 
Chap 4.ppt
Chap 4.pptChap 4.ppt
Chap 4.ppt
 
Chap 4.ppt
Chap 4.pptChap 4.ppt
Chap 4.ppt
 
programming .pptx
programming .pptxprogramming .pptx
programming .pptx
 

Recently uploaded

Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 

Recently uploaded (20)

Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 

Real Time System

  • 1. Real Time System Akansh Singhal 1402931009
  • 2. Definition • A real-time system is a type of hardware or software that operates with a time constraint. • The correctness of real-time system depends not only on logical results but also on time. • If real time system exceeds the time bonds it results in performance degradation and/or malfunction of system. • There are two types of real time system: o Hard Real Time System o Soft Real Time System • Most of the embedded system are real time system. • Example: Aircraft Traffic control, Boilers, Digital Controller, Telecommunication.
  • 4. Contd… E(t)=R(t)-Y(t) Where R(t) is desired state. Y(t) is measured state. E(t) is error variable. double PID(double In) { Out=P_gain*In_Igain*Insum+D_gain*InDiff; Insum+=In; InDiff=In-Inold; Inold=In; return out; } Implementation of Digital controller in C A Digital Controller: • Obtain I/P values from sensors. • Can store state variables. • Dynamic Parameters are known. Formula:
  • 5. Hard Real time system vs Soft Real Time System S.No Parameter Hard Real Time System Soft Real Time System 1 Safety Critical Non Critical 2 Load Performance Predictable Degraded 3 File Size Small/Medium Large 4 Data Integrity Short Term Long Term 5 Redundancy Time Hard Required Soft Required 6 Error Detection Autonomus User assisted 7 Example Air Traffic Control Telecom
  • 6. Issues in Real Time Computing • Architectural Issues:-  Processor Issues  Network Issues  Architecture for clock synchronization  Reliability Evaluation • Operating System Issues:-  Task Assignment and Scheduling  Communication Protocol  Failure Management and Recovery  Clock Synchronization • Other Issues:-  Programming Language Issues  Database  Performance Measures Applications of Real Time System • Metal Industry • Aviation • Water Plant • Petro Chemical Air Traffic Control
  • 7. Terminologies Related • Task: Unit of Computations a processor executes. • Job: Any instance of task is called of job. Its functionality is defined in task. • Jitter Time: The task release in a range of time from {r-,r+} • Release Time: It is instant of time at which job become available for execution. • Deadline: It is instant of time by which its execution is required to be complete. • Sporadic Release time: The job is released at random time for execution. • Phase: Shifted release time of first job in task Ѱ • Feasibility Interval: It is interval between release time and deadline {r,D}. TasJ1.1 J1.2 J1.3 J1.4 J1.5 ------------ J1.nTask1
  • 9. Schedulers • A scheduler schedules job in their order of job execution. • The components of schedulers are Heap, Timer, Task Memory. Heap Task Memory Task Memory Timer • The timer expiries at scheduling point. Job from task T is then scheduled from task T at time t. Scheduler Proficient Equally proficient Optimal
  • 10. Scheduling Tasks FIFO QUEUE Execute U= 𝒆𝟏+𝒆𝟐−−−𝒆𝒏 (𝒑𝟏+𝒑𝟐−−−𝒑𝒏) • Scheduling is the process to schedule the task which are ready for execution. • Scheduling point is a point at which scheduler takes decision regarding which task to be run next. • The CPU Utilization can be calculated as:-
  • 11. Types of Scheduling in RTOS Scheduling Static or Offline Clock Driven Cyclic Dynamic or Online Earliest deadline First Or Dynamic Priority Algorithm Rate Monotonic or Static Priority Algorithm
  • 12. Clock Driven Scheduling • The job list as well as which task to be run for how long may be stored in a table. • For scheduling n periodic tasks the scheduler develops a permanent schedule for a period LCM(p1,p2,p3…..pn). • Each time we have to set timer. Task Start Time Stop time T1 0 100 T2 101 150 T3 151 225 Pro: Time efficient, Simple and flexible. Con: Can not handle sporadic or aperiodic task.
  • 13. Cyclic Scheduler • This scheduler deals with the major and minor cycle (frame). • Repeat a precomputed cycle. • A major cycle is divided into minor cycles called frame • Major cycle=LCM(p1,p2,p3----pn) can be greater than LCM if F do not divide it evenly. Major Cycle Major Cycle Frames 𝟐 ∗ 𝐟 − 𝐠𝐜𝐝 𝒑𝒊, 𝒇 ≤ 𝑫𝒊 • The frame size should be greater than each task size 𝑓 ≥ max 𝑒𝑖 . This is for minimum context switch • To minimize table size the frame size should squarely divide major cycle. • The time constraint for each task based on deadline and release time is given with formula:- Condition to choose frame size:-
  • 14. Event Driven Scheduling: • Can handle both sporadic and aperiodic task. • Each task have some sort of priority that may be fixed or assigned at run time. Earliest Deadline First: • The Task priorities are assigned dynamically while execution. • This scheduling is optimal but not used commercially. • A task with reaching deadline has higher priority than the other tasks. • This scheduling is best in uniprocessor, independent and non shareable processors. • The utilization U is less than 1. • The major disadvantages are o Runtime efficiency o Resource sharing create problem o Transient Overload Handling Problem
  • 16. Rate Monotonic Algorithm • The priority of task is proportional to frequency • This is widely used algorithm and one of the optimal one • The priorities in this scheduling are fixed • The scheduling is preemptive one • Task with shortest period get higher priority Assumptions:- • All task are periodic and not synchronize with other • All process must have a release time equal to 0 Frequency Priority • It consider optimal in the sense that if set of processes can not be scheduled by this algorithm, It can not be scheduled by any other scheduling algorithm • Despite being optimal, RMA has bounded CPU utilization. The worst case CPU Utilization for scheduling N processes is 2(2 1 𝑛 − 1). • As number of process approaches infinity, CPU utilization fall approximately 69%