SlideShare a Scribd company logo
1 of 16
RMK COLLEGE OF ENGINEERING AND
TECHNOLOGY
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING
Ms. S. Rajalakshmi
EMBEDDED AND REAL TIME
SYSTEM
Unit- 4
REAL TIME SYSTEMS
Structure of a Real Time
System
01
Estimating Program Run
Time
02
Task Assignment and
Scheduling
03
Fault Tolerance
Techniques
04
Reliability , Evaluation05
Clock Synchronization06
• Infographic StylePrescribed Text Books & Reference Books
TEXT BOOK
Jane W.S.Liu,‖ Real Time Systems‖, Pearson
Education, Third Indian Reprint, 2003.(UNIT IV)
REFERENCE
C.M. Krishna, Kang G. Shin, ―Real-Time Systems‖,
International Editions, Mc Graw Hill 1997
S.No Topic Online
Source
Duration
1 Mastering RTOS: Hands on Free RTOS and STM32Fx
with Debugging
Udemy 15 hours
2 Embedded Hardware and Operating Systems Coursera 4 weeks
3. TASK ASSIGNMENT AND SCHEDULING
Periodic Task: A task Ti is Periodic if it is released periodically for every Pi Seconds.
Constraint: Task to run exactly once every period.
Aperiodic/Sporadic Task: Can occur any time-no arrival pattern given
Release time(τ) - The time at which all the data that
are required to begin executing the task available.
Deadline(di) - The time by which task must
complete its execution.
Release time
(τ)
Relative
deadline
(di)
Absolute
deadline
(τ+di)
DeadlineArrival of a
Task
(τ)
 Task Consumes Resources -Processor Time, Memory and Input data.
 Task may have precedence constraints.
 if Task Ti output is needed as input by task Tj.
 Precedence Graph: Precedence constraint represented.
Task Precedence
Scheduling
Process by which the tasks that are to be executed are arranged in an order
Scheduler – Program responsible for scheduling process
Types of Scheduling
Off line Scheduling
On line Scheduling
Preemptive Task
Task that can be interrupted
Preemption
Process by the currently executing task is
paused or stopped in favour of a higher
priority Task
Scheduling Algorithms
1. UniProcessor Scheduling Algorithm
2. MultiProcessor Scheduling Algorithm
I. Traditional Rate Monotonic Scheduling Algorithm (RMS)
II. Rate Monotonic Defered Server (RMDS)
III. Earliest Deadline First (EDF)
IV. Precedence and Exclusion Condition
V. IRIS Tasks
I. Utilization balancing algorithm
II. Next-fit algorithm
III. Bin-packing algorithm
IV. Bin-packing algorithm
V. Myopic offline scheduling algorithm
VI. Myopic offline scheduling algorithm
VII.Assignment with Precedence Constrainsts
(i) Traditional rate-monotonic (RMS):
• Periodic, preemptible tasks
• Deadlines equal the task period.
• A task set of n tasks is schedulable under RM if its total
processor utilization is no greater than n(2/"-1).
• Task priorities are
• Some results are also available for the case where a task
deadline does not equal its period.
(ii) Rate-onotmonic deferred server
(DS):
• Similar to the RM algorithm, except
that it can handle both periodic
aperiodic tasks.
(iii)Earliest deadline first (EDF):
• Tasks are preemptible
• Task with the earliest deadline has the highest priority.
• If a task set is not schedulable on a single processor
by EDF, there is no other processor that can
successfully schedule that task set.
(iv)Precedence and exclusion conditions:
• Takes precedence conditions into account.
• Non preemptable task also considered
(v) Multiple task versions:
Suitable for system has primary and alternative
versions of some tasks.
If the system has enough time, it will execute the
primary; however, under conditions of overload, the
alternative may be picked.
(vi) IRIS tasks:
• Increased Reward with Increased Service.
• Tasks that be stopped early and still provide
useful output.
(i) Utilization balancing
algorithm:
Assigns tasks to processors one by one
in such a way that at the end of each
step, the utilization of the various
processors are as nearly balanced as
possible.
Tasks are assumed to be preemptible.
(iii) Bin-packing algorithm:
Assigns tasks to processors under the constraint at the
total processor utilization must not exceed a given
threshold. The threshold is set in such a way that the
uniprocessor scheduling algorithm is able to schedule the
tasks assigned to each processor. Tasks are assumed to be
preemptible.
(ii) Next-fit algorithm:
• The next-fit algorithm is designed to work in
conjunction with the rate-monotonic uniprocessor
scheduling algorithm.
• Divides the set of tasks into various classes.
• A set of processors is exclusively assigned to each task
class.
• Tasks are assumed to be preemptible.
(iv)Myopic offline scheduling algorithm:
• Deal with nonpre-emptible tasks.
• It builds up the schedule using a search.
(v)Focused addressing and bidding algorithm:
Tasks are assumed to arrive at the individual
processors.
A processor that finds itself unable to meet the
deadline or other constraints of all its tasks tries to
offload some of its workload onto other processors.
It does so by announcing which task(s) it would like
to offload and waiting for the other processors to
offer to take them up.
(vi) Buddy strategy: The buddy strategy takes roughly
the same approach as the focused addressing algorithm.
Processors are divided into three categories: under
loaded, fully loaded, and overloaded. Overloaded
processors ask the underloaded processor to offer to take
over some of their load.
(vii) Assignment
with precedence
constraints:
The last task
assignment algorithm
takes task
precedence
constraints into
account.
CLASSICAL UNIPROCESSOR
SCHEDULING ALGORITHMS
Assumptions made for both the RMS and
EDF algorithms.
A1. No task has any non pre-emptable section and the
cost of preemption is negligible.
A2. Only processing requirements are significant;
memory, I/O, and other re source requirements are
negligible.
A3. All tasks are independent; there are no precedence
constraints.
CLASSICAL UNIPROCESSOR SCHEDULING
ALGORITHMS
Assumptions made for both the RMS and
EDF algorithms.
A1. No task has any non pre-emptable section and the
cost of preemption is negligible.
A2. Only processing requirements are significant;
memory, I/O, and other re source requirements are
negligible.
A3. All tasks are independent; there are no precedence
constraints.
Task Scheduling Algorithms
Static Priority Algorithm: Task Priority does not change with in a mode.
Rate Monotonic Scheduling (RMS)
Dynamic Priority Algorithm: Priority can change with time.
Example: Earliest deadline First (EDF)
Preemptive Scheduling: A task can be
interrupted by other task.
Non Preemptive Scheduling: Once a task is
begun it must be run to complete or it gets locked by
resource.
THANK YOU

More Related Content

What's hot

Ec8791 unit 5 processes and operating systems
Ec8791 unit 5 processes and operating systemsEc8791 unit 5 processes and operating systems
Ec8791 unit 5 processes and operating systemsRajalakshmiSermadurai
 
ARM Exception and interrupts
ARM Exception and interrupts ARM Exception and interrupts
ARM Exception and interrupts NishmaNJ
 
Embedded Firmware Design and Development, and EDLC
Embedded Firmware Design and Development, and EDLCEmbedded Firmware Design and Development, and EDLC
Embedded Firmware Design and Development, and EDLCJuliaAndrews11
 
Introduction to Embedded Architecture
Introduction to Embedded Architecture Introduction to Embedded Architecture
Introduction to Embedded Architecture amrutachintawar239
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating SystemTech_MX
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded SystemsHimanshu Ghetia
 
UNIT-I-RTOS and Concepts
UNIT-I-RTOS and ConceptsUNIT-I-RTOS and Concepts
UNIT-I-RTOS and ConceptsDr.YNM
 
Superscalar and VLIW architectures
Superscalar and VLIW architecturesSuperscalar and VLIW architectures
Superscalar and VLIW architecturesAmit Kumar Rathi
 
ARM7-ARCHITECTURE
ARM7-ARCHITECTURE ARM7-ARCHITECTURE
ARM7-ARCHITECTURE Dr.YNM
 
Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems VijayKumar5738
 
Rtos concepts
Rtos conceptsRtos concepts
Rtos conceptsanishgoel
 
Embedded firmware
Embedded firmwareEmbedded firmware
Embedded firmwareJoel P
 
Non orthogonal multiple access
Non orthogonal multiple accessNon orthogonal multiple access
Non orthogonal multiple accessShalikramRajpoot
 

What's hot (20)

Ec8791 unit 5 processes and operating systems
Ec8791 unit 5 processes and operating systemsEc8791 unit 5 processes and operating systems
Ec8791 unit 5 processes and operating systems
 
ARM CORTEX M3 PPT
ARM CORTEX M3 PPTARM CORTEX M3 PPT
ARM CORTEX M3 PPT
 
EC8791 UML-model train controller
EC8791 UML-model train controllerEC8791 UML-model train controller
EC8791 UML-model train controller
 
ARM Exception and interrupts
ARM Exception and interrupts ARM Exception and interrupts
ARM Exception and interrupts
 
Communication protocols - Embedded Systems
Communication protocols - Embedded SystemsCommunication protocols - Embedded Systems
Communication protocols - Embedded Systems
 
Embedded Firmware Design and Development, and EDLC
Embedded Firmware Design and Development, and EDLCEmbedded Firmware Design and Development, and EDLC
Embedded Firmware Design and Development, and EDLC
 
Vxworks
VxworksVxworks
Vxworks
 
Introduction to Embedded Architecture
Introduction to Embedded Architecture Introduction to Embedded Architecture
Introduction to Embedded Architecture
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating System
 
RTOS Basic Concepts
RTOS Basic ConceptsRTOS Basic Concepts
RTOS Basic Concepts
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded Systems
 
How to choose an RTOS?
How to choose an RTOS?How to choose an RTOS?
How to choose an RTOS?
 
UNIT-I-RTOS and Concepts
UNIT-I-RTOS and ConceptsUNIT-I-RTOS and Concepts
UNIT-I-RTOS and Concepts
 
Superscalar and VLIW architectures
Superscalar and VLIW architecturesSuperscalar and VLIW architectures
Superscalar and VLIW architectures
 
ARM7-ARCHITECTURE
ARM7-ARCHITECTURE ARM7-ARCHITECTURE
ARM7-ARCHITECTURE
 
Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems
 
Rtos concepts
Rtos conceptsRtos concepts
Rtos concepts
 
Multiple Access
Multiple AccessMultiple Access
Multiple Access
 
Embedded firmware
Embedded firmwareEmbedded firmware
Embedded firmware
 
Non orthogonal multiple access
Non orthogonal multiple accessNon orthogonal multiple access
Non orthogonal multiple access
 

Similar to Task assignment and scheduling

Efficient Dynamic Scheduling Algorithm for Real-Time MultiCore Systems
Efficient Dynamic Scheduling Algorithm for Real-Time MultiCore Systems Efficient Dynamic Scheduling Algorithm for Real-Time MultiCore Systems
Efficient Dynamic Scheduling Algorithm for Real-Time MultiCore Systems iosrjce
 
Survey of Real Time Scheduling Algorithms
Survey of Real Time Scheduling AlgorithmsSurvey of Real Time Scheduling Algorithms
Survey of Real Time Scheduling AlgorithmsIOSR Journals
 
Efficient Resource Allocation to Virtual Machine in Cloud Computing Using an ...
Efficient Resource Allocation to Virtual Machine in Cloud Computing Using an ...Efficient Resource Allocation to Virtual Machine in Cloud Computing Using an ...
Efficient Resource Allocation to Virtual Machine in Cloud Computing Using an ...ijceronline
 
Optimized Assignment of Independent Task for Improving Resources Performance ...
Optimized Assignment of Independent Task for Improving Resources Performance ...Optimized Assignment of Independent Task for Improving Resources Performance ...
Optimized Assignment of Independent Task for Improving Resources Performance ...ijgca
 
Optimized Assignment of Independent Task for Improving Resources Performance ...
Optimized Assignment of Independent Task for Improving Resources Performance ...Optimized Assignment of Independent Task for Improving Resources Performance ...
Optimized Assignment of Independent Task for Improving Resources Performance ...Ricardo014
 
Optimized Assignment of Independent Task for Improving Resources Performance ...
Optimized Assignment of Independent Task for Improving Resources Performance ...Optimized Assignment of Independent Task for Improving Resources Performance ...
Optimized Assignment of Independent Task for Improving Resources Performance ...ijgca
 
Comparative Analysis of Various Grid Based Scheduling Algorithms
Comparative Analysis of Various Grid Based Scheduling AlgorithmsComparative Analysis of Various Grid Based Scheduling Algorithms
Comparative Analysis of Various Grid Based Scheduling Algorithmsiosrjce
 
capacityshifting1
capacityshifting1capacityshifting1
capacityshifting1Gokul Vasan
 
Fault Tollerant scheduling system for computational grid
Fault Tollerant scheduling system for computational gridFault Tollerant scheduling system for computational grid
Fault Tollerant scheduling system for computational gridGhulam Asfia
 
Scheduling in Cloud Computing
Scheduling in Cloud ComputingScheduling in Cloud Computing
Scheduling in Cloud ComputingHitesh Mohapatra
 
multiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.pptmultiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.pptnaghamallella
 

Similar to Task assignment and scheduling (20)

ESC UNIT 3.ppt
ESC UNIT 3.pptESC UNIT 3.ppt
ESC UNIT 3.ppt
 
K017617786
K017617786K017617786
K017617786
 
Efficient Dynamic Scheduling Algorithm for Real-Time MultiCore Systems
Efficient Dynamic Scheduling Algorithm for Real-Time MultiCore Systems Efficient Dynamic Scheduling Algorithm for Real-Time MultiCore Systems
Efficient Dynamic Scheduling Algorithm for Real-Time MultiCore Systems
 
Ijariie1161
Ijariie1161Ijariie1161
Ijariie1161
 
Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
 
Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
 
Real-Time Operating Systems
Real-Time Operating SystemsReal-Time Operating Systems
Real-Time Operating Systems
 
Survey of Real Time Scheduling Algorithms
Survey of Real Time Scheduling AlgorithmsSurvey of Real Time Scheduling Algorithms
Survey of Real Time Scheduling Algorithms
 
Efficient Resource Allocation to Virtual Machine in Cloud Computing Using an ...
Efficient Resource Allocation to Virtual Machine in Cloud Computing Using an ...Efficient Resource Allocation to Virtual Machine in Cloud Computing Using an ...
Efficient Resource Allocation to Virtual Machine in Cloud Computing Using an ...
 
Optimized Assignment of Independent Task for Improving Resources Performance ...
Optimized Assignment of Independent Task for Improving Resources Performance ...Optimized Assignment of Independent Task for Improving Resources Performance ...
Optimized Assignment of Independent Task for Improving Resources Performance ...
 
Optimized Assignment of Independent Task for Improving Resources Performance ...
Optimized Assignment of Independent Task for Improving Resources Performance ...Optimized Assignment of Independent Task for Improving Resources Performance ...
Optimized Assignment of Independent Task for Improving Resources Performance ...
 
Optimized Assignment of Independent Task for Improving Resources Performance ...
Optimized Assignment of Independent Task for Improving Resources Performance ...Optimized Assignment of Independent Task for Improving Resources Performance ...
Optimized Assignment of Independent Task for Improving Resources Performance ...
 
J0210053057
J0210053057J0210053057
J0210053057
 
C017241316
C017241316C017241316
C017241316
 
Comparative Analysis of Various Grid Based Scheduling Algorithms
Comparative Analysis of Various Grid Based Scheduling AlgorithmsComparative Analysis of Various Grid Based Scheduling Algorithms
Comparative Analysis of Various Grid Based Scheduling Algorithms
 
capacityshifting1
capacityshifting1capacityshifting1
capacityshifting1
 
Fault Tollerant scheduling system for computational grid
Fault Tollerant scheduling system for computational gridFault Tollerant scheduling system for computational grid
Fault Tollerant scheduling system for computational grid
 
RTOS
RTOSRTOS
RTOS
 
Scheduling in Cloud Computing
Scheduling in Cloud ComputingScheduling in Cloud Computing
Scheduling in Cloud Computing
 
multiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.pptmultiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.ppt
 

More from RajalakshmiSermadurai

More from RajalakshmiSermadurai (14)

Ec8791 arm 9 processor
Ec8791 arm 9 processorEc8791 arm 9 processor
Ec8791 arm 9 processor
 
Ec8791 lpc2148 pwm
Ec8791 lpc2148 pwmEc8791 lpc2148 pwm
Ec8791 lpc2148 pwm
 
Ec8791 lpc2148 uart
Ec8791 lpc2148 uartEc8791 lpc2148 uart
Ec8791 lpc2148 uart
 
Ec8791 lpc2148
Ec8791 lpc2148Ec8791 lpc2148
Ec8791 lpc2148
 
Ec8791 lpc2148 timer unit
Ec8791 lpc2148 timer unitEc8791 lpc2148 timer unit
Ec8791 lpc2148 timer unit
 
EC8791 consumer electronics-platform level performance analysis
EC8791 consumer electronics-platform level performance analysisEC8791 consumer electronics-platform level performance analysis
EC8791 consumer electronics-platform level performance analysis
 
EC8791 designing with computing platform
EC8791 designing with computing platformEC8791 designing with computing platform
EC8791 designing with computing platform
 
EC8791 Design Methodologies
EC8791 Design MethodologiesEC8791 Design Methodologies
EC8791 Design Methodologies
 
EC8791 Requirement-Specifications-Quality assurance techniques
EC8791 Requirement-Specifications-Quality assurance techniquesEC8791 Requirement-Specifications-Quality assurance techniques
EC8791 Requirement-Specifications-Quality assurance techniques
 
Estimating program run time
Estimating program run timeEstimating program run time
Estimating program run time
 
Introduction and structure of a real time system
Introduction and structure of a real time systemIntroduction and structure of a real time system
Introduction and structure of a real time system
 
Embedded system design process
Embedded system design processEmbedded system design process
Embedded system design process
 
Embedded system introduction
Embedded system introductionEmbedded system introduction
Embedded system introduction
 
EC6703 unit-4
EC6703 unit-4EC6703 unit-4
EC6703 unit-4
 

Recently uploaded

(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...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
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
(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
 
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
 
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
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 

Recently uploaded (20)

(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
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...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
(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...
 
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...
 
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
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 

Task assignment and scheduling

  • 1. RMK COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING Ms. S. Rajalakshmi EMBEDDED AND REAL TIME SYSTEM
  • 2. Unit- 4 REAL TIME SYSTEMS Structure of a Real Time System 01 Estimating Program Run Time 02 Task Assignment and Scheduling 03 Fault Tolerance Techniques 04 Reliability , Evaluation05 Clock Synchronization06
  • 3. • Infographic StylePrescribed Text Books & Reference Books TEXT BOOK Jane W.S.Liu,‖ Real Time Systems‖, Pearson Education, Third Indian Reprint, 2003.(UNIT IV) REFERENCE C.M. Krishna, Kang G. Shin, ―Real-Time Systems‖, International Editions, Mc Graw Hill 1997
  • 4. S.No Topic Online Source Duration 1 Mastering RTOS: Hands on Free RTOS and STM32Fx with Debugging Udemy 15 hours 2 Embedded Hardware and Operating Systems Coursera 4 weeks
  • 5. 3. TASK ASSIGNMENT AND SCHEDULING Periodic Task: A task Ti is Periodic if it is released periodically for every Pi Seconds. Constraint: Task to run exactly once every period. Aperiodic/Sporadic Task: Can occur any time-no arrival pattern given Release time(τ) - The time at which all the data that are required to begin executing the task available. Deadline(di) - The time by which task must complete its execution. Release time (τ) Relative deadline (di) Absolute deadline (τ+di) DeadlineArrival of a Task (τ)
  • 6.  Task Consumes Resources -Processor Time, Memory and Input data.  Task may have precedence constraints.  if Task Ti output is needed as input by task Tj.  Precedence Graph: Precedence constraint represented. Task Precedence
  • 7. Scheduling Process by which the tasks that are to be executed are arranged in an order Scheduler – Program responsible for scheduling process Types of Scheduling Off line Scheduling On line Scheduling Preemptive Task Task that can be interrupted Preemption Process by the currently executing task is paused or stopped in favour of a higher priority Task
  • 8. Scheduling Algorithms 1. UniProcessor Scheduling Algorithm 2. MultiProcessor Scheduling Algorithm I. Traditional Rate Monotonic Scheduling Algorithm (RMS) II. Rate Monotonic Defered Server (RMDS) III. Earliest Deadline First (EDF) IV. Precedence and Exclusion Condition V. IRIS Tasks I. Utilization balancing algorithm II. Next-fit algorithm III. Bin-packing algorithm IV. Bin-packing algorithm V. Myopic offline scheduling algorithm VI. Myopic offline scheduling algorithm VII.Assignment with Precedence Constrainsts
  • 9. (i) Traditional rate-monotonic (RMS): • Periodic, preemptible tasks • Deadlines equal the task period. • A task set of n tasks is schedulable under RM if its total processor utilization is no greater than n(2/"-1). • Task priorities are • Some results are also available for the case where a task deadline does not equal its period. (ii) Rate-onotmonic deferred server (DS): • Similar to the RM algorithm, except that it can handle both periodic aperiodic tasks. (iii)Earliest deadline first (EDF): • Tasks are preemptible • Task with the earliest deadline has the highest priority. • If a task set is not schedulable on a single processor by EDF, there is no other processor that can successfully schedule that task set.
  • 10. (iv)Precedence and exclusion conditions: • Takes precedence conditions into account. • Non preemptable task also considered (v) Multiple task versions: Suitable for system has primary and alternative versions of some tasks. If the system has enough time, it will execute the primary; however, under conditions of overload, the alternative may be picked. (vi) IRIS tasks: • Increased Reward with Increased Service. • Tasks that be stopped early and still provide useful output.
  • 11. (i) Utilization balancing algorithm: Assigns tasks to processors one by one in such a way that at the end of each step, the utilization of the various processors are as nearly balanced as possible. Tasks are assumed to be preemptible. (iii) Bin-packing algorithm: Assigns tasks to processors under the constraint at the total processor utilization must not exceed a given threshold. The threshold is set in such a way that the uniprocessor scheduling algorithm is able to schedule the tasks assigned to each processor. Tasks are assumed to be preemptible. (ii) Next-fit algorithm: • The next-fit algorithm is designed to work in conjunction with the rate-monotonic uniprocessor scheduling algorithm. • Divides the set of tasks into various classes. • A set of processors is exclusively assigned to each task class. • Tasks are assumed to be preemptible.
  • 12. (iv)Myopic offline scheduling algorithm: • Deal with nonpre-emptible tasks. • It builds up the schedule using a search. (v)Focused addressing and bidding algorithm: Tasks are assumed to arrive at the individual processors. A processor that finds itself unable to meet the deadline or other constraints of all its tasks tries to offload some of its workload onto other processors. It does so by announcing which task(s) it would like to offload and waiting for the other processors to offer to take them up. (vi) Buddy strategy: The buddy strategy takes roughly the same approach as the focused addressing algorithm. Processors are divided into three categories: under loaded, fully loaded, and overloaded. Overloaded processors ask the underloaded processor to offer to take over some of their load.
  • 13. (vii) Assignment with precedence constraints: The last task assignment algorithm takes task precedence constraints into account. CLASSICAL UNIPROCESSOR SCHEDULING ALGORITHMS Assumptions made for both the RMS and EDF algorithms. A1. No task has any non pre-emptable section and the cost of preemption is negligible. A2. Only processing requirements are significant; memory, I/O, and other re source requirements are negligible. A3. All tasks are independent; there are no precedence constraints.
  • 14. CLASSICAL UNIPROCESSOR SCHEDULING ALGORITHMS Assumptions made for both the RMS and EDF algorithms. A1. No task has any non pre-emptable section and the cost of preemption is negligible. A2. Only processing requirements are significant; memory, I/O, and other re source requirements are negligible. A3. All tasks are independent; there are no precedence constraints.
  • 15. Task Scheduling Algorithms Static Priority Algorithm: Task Priority does not change with in a mode. Rate Monotonic Scheduling (RMS) Dynamic Priority Algorithm: Priority can change with time. Example: Earliest deadline First (EDF) Preemptive Scheduling: A task can be interrupted by other task. Non Preemptive Scheduling: Once a task is begun it must be run to complete or it gets locked by resource.