SlideShare a Scribd company logo
1 of 20
UNIT IV
REALTIME SYSTEMS
Structure of a Real Time System - Estimating program run times –
Task Assignmentand Scheduling – FaultTolerance Techniques –
Reliability, Evaluation – Clock Synchronization.
Operating System
⚫An Operating System performs all the basic tasks like managing
file, process, and memory.
⚫Thus operating system acts as managerof all the resources,
i.e. resource manager.
⚫Operating system becomes an interface between userand
machine.
Types of Operating Systems
⚫Batch Operating System
⚫Time-Sharing Operating Systems
⚫Distributed Operating System
⚫ Network Operating System
⚫Real-Time Operating System
1. Batch Operating System
Time-Sharing Operating Systems
Distributed Operating System
Network Operating System
Real-Time Operating System
⚫These types of OSs serves the real-timesystems. The time interval
required to process and respond to inputs isvery small. This time
interval is called response time.
⚫Real-time systems are used when there are time requirementsare
very strict like missilesystems, air trafficcontrol systems, robotsetc
⚫Twotypesof Real-Time Operating System which areas follows:
⚫Hard Real-Time Systems:
⚫Soft Real-Time Systems:
⚫Hard Real-Time Systems:
• These OSs are meant for the applicationswhere time constraints
are very strict and even the shortest possibledelay is not
acceptable.
⚫These systems are built for saving life like automatic parachutes
orair bags which are required to be readily available in caseof any
accident.
⚫ Virtual memory is almost never found in these systems.
⚫Soft Real-Time Systems:
• These OSs are forapplications where for time-
constraint is less strict.
Structure of a Real Time System
Estimating Program Run Times
⚫Real timesystem meetdeadlines, it is important to be able toaccurately
estimate program run times.
⚫Estimating theexecuting timeof anygiven program is averydifficult
task
⚫Itdepend on the following factors
⚫Source code
⚫Compiler-Mapping should be depend on thecompiler used.
⚫Machinearchitecture
⚫Operating system
⚫Analysisof a sourcecode
⚫ L1: a = bx c;
⚫ L2: b = d + e;
⚫ L3: d = a – f;
Schematicof a timing estimationsystem
• Accounting of Pipeline
Two Stagepipeline
⚫ CacheMemory
⚫ Virtual Memory
TaskAssignment and Scheduling
⚫A Task requires someexecution timeon a processor
⚫Alsoa task may required certain amountof memoryor access toa bus
⚫Sometimesa resource must be exclusively held by a task
⚫In other cases resource may be exclusive or non exclusivedepending on the
operation to be performed on it
⚫ ReleaseTime
⚫ A task isa timeatwhich all thedata thatarerequired to beginexecuting theTask are
available
⚫ Deadline
⚫ Thedeadline is the time bywhich thetask mustcomplete its execution
⚫ Thedeadline must be hard orsoft
⚫ Task areclassified as
⚫ Periodic
⚫ Sporadic
⚫ Aperiodic
⚫ Periodic
• A task Ti is periodic if it is released periodically. sayevery pi
seconds pi is called the period of task Ti
⚫ SporadicTask
⚫ Sporadic task is a notperiodic task, but may be invoked at irregular interval
⚫ Sporadic tasksarecharacterized byan upper bound on the rateat which they may be
invoked
⚫ APeriodicTask
⚫ Tasks to be those taskswhich are notperiodic and which also have no upper bound on their
invocationrate
⚫Task Assignment / Schedule
⚫All task starts afterthe release timeand complete before theirdeadline
⚫A schedule may be
⚫ Pre-computed(Off linescheduling)
⚫ Dynamically(Online Scheduling)
⚫Pre-computed Scheduling
⚫ Advance theoperation with specification of periodic taskswill be run and slots for the sporadic
/ aperiodic tasks in the event that theyare involved.
⚫Dynamically Scheduling
⚫ Tasks arescheduled as theyarrive in the system
⚫ Thealgorithm used in onlinescheduling must be fast and it takes to meet their
deadlines is clearly useless
⚫ Two types priorityalgorithmsare used
⚫ Static priorityalgorithm
⚫ Dynamic priorityalgorithm
⚫ Static priorityalgorithm
⚫ Staticpriorityalgorithm assume that the task prioritydoes not changewithina mode
⚫ Example Rate monotonicalgorithm
⚫ Dynamicpriorityalgorithm
⚫ algorithm assume that the task prioritycan changewithina time
⚫ Example Earliest Deadline First (EDF) algorthim

More Related Content

Similar to Embedded systems IoT Design UNIT IV PPT.pptx

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
 

Similar to Embedded systems IoT Design UNIT IV PPT.pptx (20)

Real Time Operating Systems, Dynamic Precision: Exploring the Realm of Real-...
Real Time Operating Systems,  Dynamic Precision: Exploring the Realm of Real-...Real Time Operating Systems,  Dynamic Precision: Exploring the Realm of Real-...
Real Time Operating Systems, Dynamic Precision: Exploring the Realm of Real-...
 
RTOS
RTOSRTOS
RTOS
 
Operating System-Concepts of Process
Operating System-Concepts of ProcessOperating System-Concepts of Process
Operating System-Concepts of Process
 
Real time system tsp
Real time system tspReal time system tsp
Real time system tsp
 
ERTS UNIT 5.pptx
ERTS UNIT 5.pptxERTS UNIT 5.pptx
ERTS UNIT 5.pptx
 
Real timedata
Real timedataReal timedata
Real timedata
 
Unit 2_OS process management
Unit 2_OS process management Unit 2_OS process management
Unit 2_OS process management
 
Operating System.pptx
Operating System.pptxOperating System.pptx
Operating System.pptx
 
Real Time Operating Systems for Embedded Systems
Real Time Operating Systems for Embedded SystemsReal Time Operating Systems for Embedded Systems
Real Time Operating Systems for Embedded Systems
 
Real Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systemsReal Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systems
 
Processing management
Processing managementProcessing management
Processing management
 
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
 
The Diabolical Developers Guide to Performance Tuning
The Diabolical Developers Guide to Performance TuningThe Diabolical Developers Guide to Performance Tuning
The Diabolical Developers Guide to Performance Tuning
 
Chapter 19 - Real Time Systems
Chapter 19 - Real Time SystemsChapter 19 - Real Time Systems
Chapter 19 - Real Time Systems
 
RTOS.pdf
RTOS.pdfRTOS.pdf
RTOS.pdf
 
Scheduling Definition, objectives and types
Scheduling Definition, objectives and types Scheduling Definition, objectives and types
Scheduling Definition, objectives and types
 
Real Time Systems
Real Time SystemsReal Time Systems
Real Time Systems
 
Rtos Concepts
Rtos ConceptsRtos Concepts
Rtos Concepts
 
Process management in Operating System_Unit-2
Process management in Operating System_Unit-2Process management in Operating System_Unit-2
Process management in Operating System_Unit-2
 

Recently uploaded

Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..
MaherOthman7
 
Seizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksSeizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networks
IJECEIAES
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx
rahulmanepalli02
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
BalamuruganV28
 
Online crime reporting system project.pdf
Online crime reporting system project.pdfOnline crime reporting system project.pdf
Online crime reporting system project.pdf
Kamal Acharya
 
Microkernel in Operating System | Operating System
Microkernel in Operating System | Operating SystemMicrokernel in Operating System | Operating System
Microkernel in Operating System | Operating System
Sampad Kar
 

Recently uploaded (20)

Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptx
 
Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..
 
Seizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksSeizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networks
 
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility Applications
 
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
Raashid final report on Embedded Systems
Raashid final report on Embedded SystemsRaashid final report on Embedded Systems
Raashid final report on Embedded Systems
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
 
Software Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdfSoftware Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdf
 
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
Low Altitude Air Defense (LAAD) Gunner’s Handbook
Low Altitude Air Defense (LAAD) Gunner’s HandbookLow Altitude Air Defense (LAAD) Gunner’s Handbook
Low Altitude Air Defense (LAAD) Gunner’s Handbook
 
Online crime reporting system project.pdf
Online crime reporting system project.pdfOnline crime reporting system project.pdf
Online crime reporting system project.pdf
 
Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1
 
"United Nations Park" Site Visit Report.
"United Nations Park" Site  Visit Report."United Nations Park" Site  Visit Report.
"United Nations Park" Site Visit Report.
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdf
 
Microkernel in Operating System | Operating System
Microkernel in Operating System | Operating SystemMicrokernel in Operating System | Operating System
Microkernel in Operating System | Operating System
 

Embedded systems IoT Design UNIT IV PPT.pptx

  • 1. UNIT IV REALTIME SYSTEMS Structure of a Real Time System - Estimating program run times – Task Assignmentand Scheduling – FaultTolerance Techniques – Reliability, Evaluation – Clock Synchronization.
  • 2. Operating System ⚫An Operating System performs all the basic tasks like managing file, process, and memory. ⚫Thus operating system acts as managerof all the resources, i.e. resource manager. ⚫Operating system becomes an interface between userand machine.
  • 3. Types of Operating Systems ⚫Batch Operating System ⚫Time-Sharing Operating Systems ⚫Distributed Operating System ⚫ Network Operating System ⚫Real-Time Operating System
  • 8. Real-Time Operating System ⚫These types of OSs serves the real-timesystems. The time interval required to process and respond to inputs isvery small. This time interval is called response time. ⚫Real-time systems are used when there are time requirementsare very strict like missilesystems, air trafficcontrol systems, robotsetc ⚫Twotypesof Real-Time Operating System which areas follows: ⚫Hard Real-Time Systems: ⚫Soft Real-Time Systems:
  • 9. ⚫Hard Real-Time Systems: • These OSs are meant for the applicationswhere time constraints are very strict and even the shortest possibledelay is not acceptable. ⚫These systems are built for saving life like automatic parachutes orair bags which are required to be readily available in caseof any accident. ⚫ Virtual memory is almost never found in these systems. ⚫Soft Real-Time Systems: • These OSs are forapplications where for time- constraint is less strict.
  • 10. Structure of a Real Time System
  • 11.
  • 12. Estimating Program Run Times ⚫Real timesystem meetdeadlines, it is important to be able toaccurately estimate program run times. ⚫Estimating theexecuting timeof anygiven program is averydifficult task ⚫Itdepend on the following factors ⚫Source code ⚫Compiler-Mapping should be depend on thecompiler used. ⚫Machinearchitecture ⚫Operating system
  • 13. ⚫Analysisof a sourcecode ⚫ L1: a = bx c; ⚫ L2: b = d + e; ⚫ L3: d = a – f;
  • 14. Schematicof a timing estimationsystem
  • 15. • Accounting of Pipeline Two Stagepipeline
  • 17. TaskAssignment and Scheduling ⚫A Task requires someexecution timeon a processor ⚫Alsoa task may required certain amountof memoryor access toa bus ⚫Sometimesa resource must be exclusively held by a task ⚫In other cases resource may be exclusive or non exclusivedepending on the operation to be performed on it ⚫ ReleaseTime ⚫ A task isa timeatwhich all thedata thatarerequired to beginexecuting theTask are available ⚫ Deadline ⚫ Thedeadline is the time bywhich thetask mustcomplete its execution ⚫ Thedeadline must be hard orsoft ⚫ Task areclassified as ⚫ Periodic ⚫ Sporadic ⚫ Aperiodic
  • 18. ⚫ Periodic • A task Ti is periodic if it is released periodically. sayevery pi seconds pi is called the period of task Ti ⚫ SporadicTask ⚫ Sporadic task is a notperiodic task, but may be invoked at irregular interval ⚫ Sporadic tasksarecharacterized byan upper bound on the rateat which they may be invoked ⚫ APeriodicTask ⚫ Tasks to be those taskswhich are notperiodic and which also have no upper bound on their invocationrate
  • 19. ⚫Task Assignment / Schedule ⚫All task starts afterthe release timeand complete before theirdeadline ⚫A schedule may be ⚫ Pre-computed(Off linescheduling) ⚫ Dynamically(Online Scheduling)
  • 20. ⚫Pre-computed Scheduling ⚫ Advance theoperation with specification of periodic taskswill be run and slots for the sporadic / aperiodic tasks in the event that theyare involved. ⚫Dynamically Scheduling ⚫ Tasks arescheduled as theyarrive in the system ⚫ Thealgorithm used in onlinescheduling must be fast and it takes to meet their deadlines is clearly useless ⚫ Two types priorityalgorithmsare used ⚫ Static priorityalgorithm ⚫ Dynamic priorityalgorithm ⚫ Static priorityalgorithm ⚫ Staticpriorityalgorithm assume that the task prioritydoes not changewithina mode ⚫ Example Rate monotonicalgorithm ⚫ Dynamicpriorityalgorithm ⚫ algorithm assume that the task prioritycan changewithina time ⚫ Example Earliest Deadline First (EDF) algorthim