Method and apparatus for application thread prioritization
AssigneeArm Limited
InventorsAlejandro Rico Carro, Joshua Randall, Jose Alberto Joao
Life of this patent
Estimating the term…
Abstract
A method and apparatus for application thread prioritization to mitigate the effects of operating system noise is disclosed. The method generally includes executing in parallel a plurality of application threads of a parallel application. An interrupt condition of an application thread of the plurality of application threads is detected. A priority of the interrupted application thread is changed relative to priorities of one or more other application threads of the plurality of application threads, and control is returned to the interrupted application thread after the interrupt condition. The interrupted application thread then resumes execution in accordance with the changed priority.
Claims17
A method of application thread prioritization, comprising:
- executing in parallel a plurality of application threads of a parallel application;
- detecting an interrupt condition of an application thread of the plurality of application threads;
- changing a priority of the interrupted application thread relative to priorities of one or more other application threads of the plurality of application threads, including setting a thread priority register (TPR) to a higher priority value in a core that has been interrupted;
- returning control to the interrupted application thread after the interrupt condition;
- resuming, by the interrupted application thread, execution in accordance with the changed priority;
- and
- resetting corresponding priority values for the plurality of application threads after each priority value of the application threads has achieved a maximum value.
A method of application thread prioritization, comprising:
- executing in parallel a plurality of application threads of a parallel application;
- detecting an interrupt condition of an application thread of the plurality of application threads;
- changing a priority of the interrupted application thread relative to priorities of one or more other application threads of the plurality of application threads, including increasing the priority associated with the interrupted application thread when the parallel application is statically scheduled;
- returning control to the interrupted application thread after the interrupt condition;
- and
- resuming, by the interrupted application thread, execution in accordance with the changed priority.
An apparatus, comprising:
- an operating system to detect an interrupt condition of one of a plurality of application threads of a parallel application;
- and
- a processor having a core with a thread priority register (TPR),
- where, responsive to detection of the interrupt, the operating system sets the thread priority register (TPR) to a higher priority value to change a priority of the interrupted application thread relative to a priority for other application threads among the plurality of application threads,
- where the operating system returns control to the interrupted application thread after the interrupt condition and the interrupted application thread resumes execution in accordance with the changed priority, and
- where the operating system resets all corresponding priority values for the application threads after all thread priorities are set to a maximum value.
Dependencies are inferred from the claim text.