SlideShare a Scribd company logo
1 of 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

More Related Content

What's hot

What's hot (20)

Delay , Loss & Throughput
Delay , Loss & ThroughputDelay , Loss & Throughput
Delay , Loss & Throughput
 
Real-Time Operating Systems
Real-Time Operating SystemsReal-Time Operating Systems
Real-Time Operating Systems
 
Web and http computer network
Web and http computer networkWeb and http computer network
Web and http computer network
 
Leaky bucket A
Leaky bucket ALeaky bucket A
Leaky bucket A
 
TCP- Transmission Control Protocol
TCP-  Transmission Control Protocol TCP-  Transmission Control Protocol
TCP- Transmission Control Protocol
 
Local beam search example
Local beam search exampleLocal beam search example
Local beam search example
 
Earliest Due Date Algorithm for Task scheduling for cloud computing
Earliest Due Date  Algorithm for Task scheduling for cloud computingEarliest Due Date  Algorithm for Task scheduling for cloud computing
Earliest Due Date Algorithm for Task scheduling for cloud computing
 
Ch5 answers
Ch5 answersCh5 answers
Ch5 answers
 
Admission control
Admission controlAdmission control
Admission control
 
Facts finding techniques in Database
Facts finding techniques in Database Facts finding techniques in Database
Facts finding techniques in Database
 
Ch11
Ch11Ch11
Ch11
 
Daa
DaaDaa
Daa
 
Recurrence relation solutions
Recurrence relation solutionsRecurrence relation solutions
Recurrence relation solutions
 
9. chapter 8 np hard and np complete problems
9. chapter 8   np hard and np complete problems9. chapter 8   np hard and np complete problems
9. chapter 8 np hard and np complete problems
 
IntServ & DiffServ
IntServ & DiffServIntServ & DiffServ
IntServ & DiffServ
 
5 Process Scheduling
5 Process Scheduling5 Process Scheduling
5 Process Scheduling
 
Proof master theorem
Proof master theoremProof master theorem
Proof master theorem
 
Data structure tries
Data structure triesData structure tries
Data structure tries
 
AODV (adhoc ondemand distance vector routing)
AODV (adhoc ondemand distance vector routing) AODV (adhoc ondemand distance vector routing)
AODV (adhoc ondemand distance vector routing)
 
Clock driven scheduling
Clock driven schedulingClock driven scheduling
Clock driven scheduling
 

Similar to Hard Real-Time Computing Systems Using Fixed-Priority Servers

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
 

Similar to Hard Real-Time Computing Systems Using Fixed-Priority Servers (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
 

Recently uploaded

9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhijennyeacort
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxFurkanTasci3
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024thyngster
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一fhwihughh
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Bookvip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Bookmanojkuma9823
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Cantervoginip
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 

Recently uploaded (20)

9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptx
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Bookvip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Canter
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 

Hard Real-Time Computing Systems Using Fixed-Priority Servers

  • 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

Editor's Notes

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