1 / 9

Scheduling algorithms and priority inversion

Scheduling algorithms and priority inversion. Scheduling algorithms and priority inversion. What is real-time? Scheduling algorithms: Rate monotonic Deadline driven The priority inversion problem Conclusion. Scheduling algorithms.

Download Presentation

Scheduling algorithms and priority inversion

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Scheduling algorithms and priority inversion

  2. Scheduling algorithms and priority inversion • What is real-time? • Scheduling algorithms: • Rate monotonic • Deadline driven • The priority inversion problem • Conclusion

  3. Scheduling algorithms • A real-time system is one where the right results must be delivered on time. • Scheduling algorithm: the set of rules with which the activities are ordered for execution.

  4. Scheduling algorithms • Rate monotonic: Assign the priority of each task according to its period, so that the shorter the period the higher the priority. Bad: Good:

  5. Scheduling algorithms • Deadline driven: The next task to run is based on finding the task with the earliest deadline.

  6. Priority inversion problem Conditions: • Concurrent tasks share a resource that is protected by e.g. a semaphore. • At least one intermediate priority task exists.

  7. 2 3 1 Priority inversion problem High Medium Low System Interrupt

  8. Priority inversion problem Solutions: • Avoid sharing resources between tasks of differing priorities. • Turn off preemption of the low-priority task for the critical section. • The low-priority task could raise its own priority while in the critical section.

  9. Conclusion The understanding of scheduling algorithms is of fundamental significance to developers of real-time applications.

More Related