AdvancedTopic 78 of 104Electronics & Embedded
Task scheduling
Priority-based pre-emptive scheduling, rate-monotonic and EDF algorithms.
In depth
Rate-monotonic scheduling assigns higher priority to shorter periods and is feasible if utilisation U≤n(2^{1/n}-1) (≈69%). EDF schedules by earliest deadline up to 100% utilisation. Round-robin shares time among equal priorities.
Key points
- Preemptive vs cooperative
- Deadline misses
- Response-time analysis
ExampleThree tasks with periods 10, 20 and 50 ms get priorities in that order under RMS.
What is Task scheduling?
Priority-based pre-emptive scheduling, rate-monotonic and EDF algorithms.
Why is it important to understand task scheduling?
Scheduling decides which task runs when, and the chosen algorithm determines whether all deadlines are met.
What is rate-monotonic scheduling?
Fixed priorities assigned by period, with shorter periods getting higher priority, which is optimal among fixed-priority schemes for periodic tasks.
What is the utilisation bound for rate-monotonic?
About 69 percent for many tasks, so a set below this bound is always schedulable under the standard assumptions.
How is Task scheduling used in practice?
Typical applications include checking whether a set of periodic control tasks is schedulable with rate-monotonic analysis, assigning priorities to sensor, control and logging tasks and using earliest-deadline-first to maximise utilisation for variable tasks.
What should I learn before Task scheduling?
Study "Real-time operating systems" first (topic 77 of 104 in Electronics & Embedded). It covers the groundwork this topic builds on.
What are the key points of Task scheduling?
Preemptive vs cooperative. Deadline misses. Response-time analysis.
Can you give an example of Task scheduling?
Three tasks with periods 10, 20 and 50 ms get priorities in that order under RMS.
What comes after Task scheduling?
The next topic is "Mutexes and semaphores", which builds directly on this one.
How difficult is Task scheduling?
It is classed as Advanced in Electronics & Embedded (topic 78 of 104). It is an advanced topic. It assumes you are comfortable with the intermediate topics in Electronics & Embedded.