SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Hard Real – Time Computing System
Database Systems
Symphorien Karl Yoki Donzia
Daegu Catholic University, South Korea
Prof : Dr. Dongmahn Seo
2
CHAPITER 5.
Fixed – Priority Servers
3 Content
 Background Service (FIFO as availability permits)
 Polling Server, (Pseudo periodic task provides slot for serving aperiodic task)
 Deferrable Server, (Unused capacity is saved for future aperiodic arrivals)
 Priority Exchange Server, (Loans unusable capacity to ready periodic tasks)
 Sporadic Server, (Loans unusable capacity to ready periodic task and delays recoup)
 Slack Stealing, (Passive task steals unnecessary slack in scheduling)
 Non-existence of Optimal Severs
 Summary
4 Assumptions for Fixed Priority Servers
 Periodic tasks scheduled by a fixed priority algorithm
(specifically rate monotonic)
 All periodic tasks start simultaneously at time t = 0 , (deadline = period )
 Arrival times of periodic requests are unknown
 When not explicitly specified, the minimum inter arrival time
of a sporadic task is assumed to be equal to its deadline
 All tasks are fully preemptable
5
Background Scheduling
Background Service simply queues up aperiodic tasks & services them
perhaps on a FIFO basis. There are no guarantees.
Fig.1 Scheduling queues required for background Scheduling
Advantages : Simple , Can use alternate scheduling algorithm for aperiodic tasks
Disadvantage : No inherent guarantees
6
Background Scheduling
Background Service Example
Fig.2 Example of Background Scheduling of aperiodic requests under RM
7
Polling Server (PS)
 The simplest variant of server
 When active then serve pending aperiodic request within its capacity
 No aperiodic requests are pending  SUSPEND
Advantages : Relatively easy to implement
Disadvantage : Not a big advantage in performance
8
Polling Server (PS)
Polling Server Example
Fig.3 Example of a Polling Server Scheduled by RM
9
Deferrable Server (DS)
 Similar to Polling Server
 If no aperiodic requests are pending :
• Suspend itself
• Preserve Capacity until the end of the period
• If aperiodic request arrives later during the period then it is served
 At the beginning of the period capacity is fully replenished
Advantages : Much better response time for aperiodic tasks compared to PS
Disadvantage : More complex and DS violated the RM principle that the highest
priority task runs when it is ready.
10
Deferrable Server (DS)
Example of Deferrable Server
Fig.4 Example of a Deferrable Server Scheduled by RM
11
Priority Exchange Server
 Periodic server with high priority
 Preserves capacity by exchanging it for the execution time of a lower-priority
task :
• At the beginning of the period : replenish the capacity
• Aperiodic requests are pending : serve them
• No aperiodic requests are pending : exchange execution time with
the active periodic task with the highest priority
 The priority exchange is performed repeatedly
Advantages : Provides better Schedulability bound for periodic requests
Disadvantage : Provides worse response for aperiodic tasks compare to DS
12
Priority Exchange Server
Example of Priority Exchange
Fig.7 Example of Aperiodic Service under a PE Server
13
Sporadic Server
 The SS algorithm creates a high-priority task for serving aperiodic requests and,
like DS, it preserves the server capacity at its high-priority level until an
aperiodic request occurs.
 SS replenishes its capacity only after it has been consumed by aperiodic task
execution :
• Pexe(: priority level of the task which is currently executing)
• Ps(:the priority level associated with SS)
• Active (: SS is said to be active when Pexe ≥ Ps )
• Idle (: SS is said to be idle when Pexe ≤ Ps )
• RT (: Replenishment time at which the SS capacity will be replenished
• RA (: Replenishment amount that will be added to the capacity at the time
14
Sporadic Server
Example of Medium – Priority Sporadic Server
Fig.7 Example of Medium – priority Sporadic Server
15
Sporadic Server
Example of High – Priority Sporadic Server
Fig.8 Example of High – priority Sporadic Server
16
Slack Stealing
 No periodic server ; passive task Slack Stealer
 Slack
 Main idea :
• No benefit in early completion of periodic tasks
• When aperiodic request arrives : steal available slacks
 Better responsiveness, more complicated schedulability analysis
Advantages : Substantial improvement in aperiodic task response time
Disadvantage : Complexity
17
Slack Stealing
Fig.9 Example of Slack Stealer behavior :
a) when no aperiodic requests are pending;
b) when an aperiodic request of three units arrives at time t = 8.
Example of Slack Stealing
18
Non – existence of Optimal Servers
Theorem
 For any set of periodic tasks ordered on a given fixed – priority scheme and
aperiodic requests ordered according to a given aperiodic queueing discipline,
there does not exist any valid algorithm that minimizes the response time of
every soft aperiodic request.
 Similarly for average response time.
19
Non – existence of Optimal Servers
Example to Show Non-existence of Optimal Server
Fig.11 No algorithm can minimize the response time of every aperiodic request.
If J1 is minimized, J2 is not (b)
If J2 is minimized, J1 is not (c)
20
Performance Comparison of PS, DS,
PE & SS
Fig.12 Performance results of PS, DS, PE and SS.
21
Performance Comparison of Slack
Stealer wrt background, PS & SS
Fig.13 Performance of the Slack Stealer with respect to background , PS and SS.
22
Summary of Fixed – Priority
Strategis
Fig.14 Evaluation summary of fixed-priority servers.
23

Weitere ähnliche Inhalte

Was ist angesagt?

Business process modelling
Business process modellingBusiness process modelling
Business process modellingDejan Munjin
 
Operating systems chapter 5 silberschatz
Operating systems chapter 5 silberschatzOperating systems chapter 5 silberschatz
Operating systems chapter 5 silberschatzGiulianoRanauro
 
Introduction à mule esb
Introduction à mule esbIntroduction à mule esb
Introduction à mule esbMehdi EL KRARI
 
Overview of Cloud Computing
Overview of Cloud ComputingOverview of Cloud Computing
Overview of Cloud ComputingNishant Munjal
 
Transaction Processing Concept
Transaction Processing ConceptTransaction Processing Concept
Transaction Processing ConceptNishant Munjal
 
Approaches to real time scheduling
Approaches to real time schedulingApproaches to real time scheduling
Approaches to real time schedulingKamal Acharya
 
Capgemini Offre Data Services - Brochure FR
Capgemini Offre Data Services - Brochure FRCapgemini Offre Data Services - Brochure FR
Capgemini Offre Data Services - Brochure FRSkander Guetari
 
Real Time Systems
Real Time SystemsReal Time Systems
Real Time SystemsDeepak John
 
MOM - Message Oriented Middleware
MOM - Message Oriented MiddlewareMOM - Message Oriented Middleware
MOM - Message Oriented MiddlewarePeter R. Egli
 
Spark RDD : Transformations & Actions
Spark RDD : Transformations & ActionsSpark RDD : Transformations & Actions
Spark RDD : Transformations & ActionsMICHRAFY MUSTAFA
 
Fault Tolerance (Distributed computing)
Fault Tolerance (Distributed computing)Fault Tolerance (Distributed computing)
Fault Tolerance (Distributed computing)Sri Prasanna
 
operating system question bank
operating system question bankoperating system question bank
operating system question bankrajatdeep kaur
 
Reference model of real time system
Reference model of real time systemReference model of real time system
Reference model of real time systemKamal Acharya
 
Chapter 6 - Process Synchronization
Chapter 6 - Process SynchronizationChapter 6 - Process Synchronization
Chapter 6 - Process SynchronizationWayne Jones Jnr
 
Chapter 14 replication
Chapter 14 replicationChapter 14 replication
Chapter 14 replicationAbDul ThaYyal
 

Was ist angesagt? (20)

Business process modelling
Business process modellingBusiness process modelling
Business process modelling
 
Clocks
ClocksClocks
Clocks
 
Fault tolerance
Fault toleranceFault tolerance
Fault tolerance
 
Operating systems chapter 5 silberschatz
Operating systems chapter 5 silberschatzOperating systems chapter 5 silberschatz
Operating systems chapter 5 silberschatz
 
Introduction à mule esb
Introduction à mule esbIntroduction à mule esb
Introduction à mule esb
 
Partie2BI-DW2019
Partie2BI-DW2019Partie2BI-DW2019
Partie2BI-DW2019
 
Overview of Cloud Computing
Overview of Cloud ComputingOverview of Cloud Computing
Overview of Cloud Computing
 
Transaction Processing Concept
Transaction Processing ConceptTransaction Processing Concept
Transaction Processing Concept
 
Approaches to real time scheduling
Approaches to real time schedulingApproaches to real time scheduling
Approaches to real time scheduling
 
Capgemini Offre Data Services - Brochure FR
Capgemini Offre Data Services - Brochure FRCapgemini Offre Data Services - Brochure FR
Capgemini Offre Data Services - Brochure FR
 
Real Time Systems
Real Time SystemsReal Time Systems
Real Time Systems
 
MOM - Message Oriented Middleware
MOM - Message Oriented MiddlewareMOM - Message Oriented Middleware
MOM - Message Oriented Middleware
 
Spark RDD : Transformations & Actions
Spark RDD : Transformations & ActionsSpark RDD : Transformations & Actions
Spark RDD : Transformations & Actions
 
Fault Tolerance (Distributed computing)
Fault Tolerance (Distributed computing)Fault Tolerance (Distributed computing)
Fault Tolerance (Distributed computing)
 
operating system question bank
operating system question bankoperating system question bank
operating system question bank
 
Reference model of real time system
Reference model of real time systemReference model of real time system
Reference model of real time system
 
Chapter 6 - Process Synchronization
Chapter 6 - Process SynchronizationChapter 6 - Process Synchronization
Chapter 6 - Process Synchronization
 
Chapter 14 replication
Chapter 14 replicationChapter 14 replication
Chapter 14 replication
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 

Ähnlich wie PERIODIC TASK SCHEDULING - Chap.5 Periodic Task Scheduling

capacityshifting1
capacityshifting1capacityshifting1
capacityshifting1Gokul Vasan
 
Presto At Treasure Data
Presto At Treasure DataPresto At Treasure Data
Presto At Treasure DataTaro L. Saito
 
programming .pptx
programming .pptxprogramming .pptx
programming .pptxSHUJEHASSAN
 
Scheduling Algorithms-Examples.pptx
Scheduling Algorithms-Examples.pptxScheduling Algorithms-Examples.pptx
Scheduling Algorithms-Examples.pptxRevathi Kmp
 
CPU SCHEDULING AND DEADLOCK
CPU SCHEDULING AND	DEADLOCKCPU SCHEDULING AND	DEADLOCK
CPU SCHEDULING AND DEADLOCKVicky Kumar
 
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 Systemshubham ghimire
 
scheduling Uni processor Long-term .ppt
scheduling  Uni processor Long-term .pptscheduling  Uni processor Long-term .ppt
scheduling Uni processor Long-term .pptSaba651353
 
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 SchedulingRaaz Karkee
 
Ch05 cpu-scheduling
Ch05 cpu-schedulingCh05 cpu-scheduling
Ch05 cpu-schedulingNazir Ahmed
 
Redis + Apache Spark = Swiss Army Knife Meets Kitchen Sink
Redis + Apache Spark = Swiss Army Knife Meets Kitchen SinkRedis + Apache Spark = Swiss Army Knife Meets Kitchen Sink
Redis + Apache Spark = Swiss Army Knife Meets Kitchen SinkDatabricks
 
Adding Value in the Cloud with Performance Test
Adding Value in the Cloud with Performance TestAdding Value in the Cloud with Performance Test
Adding Value in the Cloud with Performance TestRodolfo Kohn
 
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 Systemsknowdiff
 
Podila mesos con-northamerica_sep2017
Podila mesos con-northamerica_sep2017Podila mesos con-northamerica_sep2017
Podila mesos con-northamerica_sep2017Sharma Podila
 

Ähnlich wie PERIODIC TASK SCHEDULING - Chap.5 Periodic Task Scheduling (20)

capacityshifting1
capacityshifting1capacityshifting1
capacityshifting1
 
Presto At Treasure Data
Presto At Treasure DataPresto At Treasure Data
Presto At Treasure Data
 
programming .pptx
programming .pptxprogramming .pptx
programming .pptx
 
Scheduling Algorithms-Examples.pptx
Scheduling Algorithms-Examples.pptxScheduling Algorithms-Examples.pptx
Scheduling Algorithms-Examples.pptx
 
CPU SCHEDULING AND DEADLOCK
CPU SCHEDULING AND	DEADLOCKCPU SCHEDULING AND	DEADLOCK
CPU SCHEDULING AND DEADLOCK
 
RTOS
RTOSRTOS
RTOS
 
Operating system
Operating systemOperating system
Operating system
 
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
 
scheduling Uni processor Long-term .ppt
scheduling  Uni processor Long-term .pptscheduling  Uni processor Long-term .ppt
scheduling Uni processor Long-term .ppt
 
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
 
Ch05 cpu-scheduling
Ch05 cpu-schedulingCh05 cpu-scheduling
Ch05 cpu-scheduling
 
Hadoop scheduler
Hadoop schedulerHadoop scheduler
Hadoop scheduler
 
Redis + Apache Spark = Swiss Army Knife Meets Kitchen Sink
Redis + Apache Spark = Swiss Army Knife Meets Kitchen SinkRedis + Apache Spark = Swiss Army Knife Meets Kitchen Sink
Redis + Apache Spark = Swiss Army Knife Meets Kitchen Sink
 
Task assignment and scheduling
Task assignment and schedulingTask assignment and scheduling
Task assignment and scheduling
 
rtos.ppt
rtos.pptrtos.ppt
rtos.ppt
 
Adding Value in the Cloud with Performance Test
Adding Value in the Cloud with Performance TestAdding Value in the Cloud with Performance Test
Adding Value in the Cloud with Performance Test
 
Planificacion
PlanificacionPlanificacion
Planificacion
 
Process and CPU scheduler
Process and CPU schedulerProcess and CPU scheduler
Process and CPU scheduler
 
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
 
Podila mesos con-northamerica_sep2017
Podila mesos con-northamerica_sep2017Podila mesos con-northamerica_sep2017
Podila mesos con-northamerica_sep2017
 

Kürzlich hochgeladen

Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...only4webmaster01
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...amitlee9823
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Researchmichael115558
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramMoniSankarHazra
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...amitlee9823
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...amitlee9823
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceDelhi Call girls
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Pooja Nehwal
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...amitlee9823
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Valters Lauzums
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...amitlee9823
 

Kürzlich hochgeladen (20)

Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
 

PERIODIC TASK SCHEDULING - Chap.5 Periodic Task Scheduling

  • 1. Hard Real – Time Computing System Database Systems Symphorien Karl Yoki Donzia Daegu Catholic University, South Korea Prof : Dr. Dongmahn Seo
  • 2. 2 CHAPITER 5. Fixed – Priority Servers
  • 3. 3 Content  Background Service (FIFO as availability permits)  Polling Server, (Pseudo periodic task provides slot for serving aperiodic task)  Deferrable Server, (Unused capacity is saved for future aperiodic arrivals)  Priority Exchange Server, (Loans unusable capacity to ready periodic tasks)  Sporadic Server, (Loans unusable capacity to ready periodic task and delays recoup)  Slack Stealing, (Passive task steals unnecessary slack in scheduling)  Non-existence of Optimal Severs  Summary
  • 4. 4 Assumptions for Fixed Priority Servers  Periodic tasks scheduled by a fixed priority algorithm (specifically rate monotonic)  All periodic tasks start simultaneously at time t = 0 , (deadline = period )  Arrival times of periodic requests are unknown  When not explicitly specified, the minimum inter arrival time of a sporadic task is assumed to be equal to its deadline  All tasks are fully preemptable
  • 5. 5 Background Scheduling Background Service simply queues up aperiodic tasks & services them perhaps on a FIFO basis. There are no guarantees. Fig.1 Scheduling queues required for background Scheduling Advantages : Simple , Can use alternate scheduling algorithm for aperiodic tasks Disadvantage : No inherent guarantees
  • 6. 6 Background Scheduling Background Service Example Fig.2 Example of Background Scheduling of aperiodic requests under RM
  • 7. 7 Polling Server (PS)  The simplest variant of server  When active then serve pending aperiodic request within its capacity  No aperiodic requests are pending  SUSPEND Advantages : Relatively easy to implement Disadvantage : Not a big advantage in performance
  • 8. 8 Polling Server (PS) Polling Server Example Fig.3 Example of a Polling Server Scheduled by RM
  • 9. 9 Deferrable Server (DS)  Similar to Polling Server  If no aperiodic requests are pending : • Suspend itself • Preserve Capacity until the end of the period • If aperiodic request arrives later during the period then it is served  At the beginning of the period capacity is fully replenished Advantages : Much better response time for aperiodic tasks compared to PS Disadvantage : More complex and DS violated the RM principle that the highest priority task runs when it is ready.
  • 10. 10 Deferrable Server (DS) Example of Deferrable Server Fig.4 Example of a Deferrable Server Scheduled by RM
  • 11. 11 Priority Exchange Server  Periodic server with high priority  Preserves capacity by exchanging it for the execution time of a lower-priority task : • At the beginning of the period : replenish the capacity • Aperiodic requests are pending : serve them • No aperiodic requests are pending : exchange execution time with the active periodic task with the highest priority  The priority exchange is performed repeatedly Advantages : Provides better Schedulability bound for periodic requests Disadvantage : Provides worse response for aperiodic tasks compare to DS
  • 12. 12 Priority Exchange Server Example of Priority Exchange Fig.7 Example of Aperiodic Service under a PE Server
  • 13. 13 Sporadic Server  The SS algorithm creates a high-priority task for serving aperiodic requests and, like DS, it preserves the server capacity at its high-priority level until an aperiodic request occurs.  SS replenishes its capacity only after it has been consumed by aperiodic task execution : • Pexe(: priority level of the task which is currently executing) • Ps(:the priority level associated with SS) • Active (: SS is said to be active when Pexe ≥ Ps ) • Idle (: SS is said to be idle when Pexe ≤ Ps ) • RT (: Replenishment time at which the SS capacity will be replenished • RA (: Replenishment amount that will be added to the capacity at the time
  • 14. 14 Sporadic Server Example of Medium – Priority Sporadic Server Fig.7 Example of Medium – priority Sporadic Server
  • 15. 15 Sporadic Server Example of High – Priority Sporadic Server Fig.8 Example of High – priority Sporadic Server
  • 16. 16 Slack Stealing  No periodic server ; passive task Slack Stealer  Slack  Main idea : • No benefit in early completion of periodic tasks • When aperiodic request arrives : steal available slacks  Better responsiveness, more complicated schedulability analysis Advantages : Substantial improvement in aperiodic task response time Disadvantage : Complexity
  • 17. 17 Slack Stealing Fig.9 Example of Slack Stealer behavior : a) when no aperiodic requests are pending; b) when an aperiodic request of three units arrives at time t = 8. Example of Slack Stealing
  • 18. 18 Non – existence of Optimal Servers Theorem  For any set of periodic tasks ordered on a given fixed – priority scheme and aperiodic requests ordered according to a given aperiodic queueing discipline, there does not exist any valid algorithm that minimizes the response time of every soft aperiodic request.  Similarly for average response time.
  • 19. 19 Non – existence of Optimal Servers Example to Show Non-existence of Optimal Server Fig.11 No algorithm can minimize the response time of every aperiodic request. If J1 is minimized, J2 is not (b) If J2 is minimized, J1 is not (c)
  • 20. 20 Performance Comparison of PS, DS, PE & SS Fig.12 Performance results of PS, DS, PE and SS.
  • 21. 21 Performance Comparison of Slack Stealer wrt background, PS & SS Fig.13 Performance of the Slack Stealer with respect to background , PS and SS.
  • 22. 22 Summary of Fixed – Priority Strategis Fig.14 Evaluation summary of fixed-priority servers.
  • 23. 23

Hinweis der Redaktion

  1. Typical Real-Time systems are hybrids characterized by: periodic tasks that execute critical control activities aperiodic tasks that are event-driven