Stack Resource Policy

The Stack Resource Policy (SRP) is not the same as the Priority ceiling protocol which is for fixed priority tasks (FP). SRP was defined by T. P. Baker[1] and is used for accessing shared resources when using Earliest deadline first scheduling.

Function

Each task is assigned a preemption level based upon the following formula where denotes the deadline of task and denotes the preemption level of task i:

Each resource R has a current ceiling that represents the maximum of the preemption levels of the tasks that may be blocked, when there are units of available and is the maximum units of that may require at any one time. is assigned as follows:

There is also a system ceiling which is the maximum of all current ceilings of the resources.

Any task that wishes to preempt the system must first satisfy the following constraint:

This can be refined for Operating System implementation (as in MarteOS) by removing the multi-unit resources and defining the stack resource policy as follows

Relevancy

The 2011 book Hard Real-Time Computing Systems: Predictable Scheduling Algorithms and Applications by Giorgio C. Buttazzo featured a dedicated section to reviewing SRP from Baker 1991 work.[2][3]

References

  1. Baker, T. P. (1990). "A Stack-Based Resource Allocation Policy for Realtime Processes". IEEE Real-Time Systems Symposium: 191–200.
  2. Hard Real-Time Computing Systems: Predictable Scheduling Algorithms and Applications, Giorgio C. Buttazzo, 2011
  3. T.P. Baker, "Stack-Based Scheduling of Realtime Processes", The Real-Time Systems Journal 3,1 (March 1991)67-100
This article is issued from Wikipedia - version of the 1/3/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.