Docsity

Fixed-Priority Servers - Embedded Real-Time System Programming - Lecture Slides, Slides of Computer Programming

Partial preview of the text

Download Fixed-Priority Servers - Embedded Real-Time System Programming - Lecture Slides and more Slides Computer Programming in PDF only on Docsity!

Chapter 5 – Fixed-Priority Servers

Typical Real-Time systems are hybrids characterized by:

  • periodic tasks that execute critical control activities
  • aperiodic tasks that are event-driven

Assumptions for Fixed Priority Servers:

Background Service

Background Service simply queues up aperiodic tasks and services them perhaps on a First Come First Served basis. There are no guarantees.

Advantages: Simple, Can use alternate scheduling algorithm for aperiodic tasks Disadvantage: No inherent guarantees

Background Service Example

Polling Server Example

Deferrable Server

Advantages: Much better response time for aperiodic tasks compared to polling

Disadvantages: More complex and DS violates the RM principle that the highest priority task runs when it is ready.

Deferrable Server Example Shows that Deferrable Server violates the RM task running guarantee

Another Example of Deferrable Server Shows that the deferring can cause a task deadline to be missed

Example of Priority Exchange

Another Example of Priority Exchange

Example of Medium-Priority Sporadic Server

Example of High-Priority Sporadic Server

Example of Slack Stealing

  • Slack Stealing Example Continued: s=