TASK PRIORITY PROCESSING METHOD AND PROCESSING DEVICE
First Claim
1. A method comprising:
- determining that a first task is blocked due to failure to access a first critical section in a multitask computing system;
raising a priority of a second task that shares a first critical section with the first task and is accessing the first critical section, the first task having a higher priority than that of the second task and a third task;
determining that the third task is accessing a second critical section which is shared with the second task; and
raising a priority of the third task.
1 Assignment
0 Petitions
Accused Products
Abstract
In a multitask computing system, there are multiple tasks include a first task, a second task, and a third task, and the first task has a higher priority than that of the second task and the third task. A method including raising the priority of the second task that shares a first critical section with the first task and is accessing the first critical section when the first task is blocked due to failure to access the first critical section; determining whether there is a third task that shares a second critical section with the second task and is accessing the second critical section; and raising, when the third task is present, the priority of the third task. The techniques of the present disclosure prevent a low-priority third task from delaying the execution of a second task, thus avoiding the priority inversion caused by the delayed execution of a high-priority first task.
-
Citations
20 Claims
-
1. A method comprising:
-
determining that a first task is blocked due to failure to access a first critical section in a multitask computing system; raising a priority of a second task that shares a first critical section with the first task and is accessing the first critical section, the first task having a higher priority than that of the second task and a third task; determining that the third task is accessing a second critical section which is shared with the second task; and raising a priority of the third task. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A device comprising:
-
one or more processors; and one or more memories storing computer readable instructions that, executable by the one or more processors, cause the one or more processors to perform acts comprising; determining that a first task is blocked due to failure to access a first critical section; raising a priority of a second task that shares a first critical section with the first task and is accessing the first critical section, the first task having a higher priority than that of the second task and a third task; determining that there is the third task that shares a second critical section with the second task and is accessing the second critical section; and raising a priority of the third task. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19)
-
-
20. One or more memories storing computer readable instructions that, executable by one or more processors, cause the one or more processors to perform acts comprising:
-
determining that a first task is blocked due to failure to access a first critical section in a multitask computing system, a priority of the first task being higher than a priority of the second task, the priority of the second task being higher than a priority of the third task; raising the priority of the second task that shares a first critical section with the first task and is accessing the first critical section up to the priority of the first task; determining that there is the third task that shares a second critical section with the second task and is accessing the second critical section; and raising the priority of the third task up to the priority of the first task.
-
Specification