Interruption of chip component managing tasks
First Claim
1. An apparatus comprising:
- a processor; and
a computer readable storage medium having computer usable program code embodied therewith, the computer usable program code executable by the processor to cause the apparatus to;
determine a current state value associated with a currently executing task;
store the current state value in a register;
determine whether a first priority of a requested task is higher than a second priority of the currently executing task;
responsive to a determination that the first priority is higher than the second priority, evaluate the current state value stored in the register and determine a time interval since receiving a request to execute the requested task;
in response to evaluating the current state value stored in the register as indicating interruptible or determining the time interval exceeds a threshold, interrupt the currently executing task and trigger execution of the requested task on the processor; and
in response to evaluating the current state value stored in the register as indicating uninterruptible and the time interval does not exceed the threshold, execute the requested task in response to detection of one member selected from the group consisting of;
detection of graceful termination of the currently executing task and detection of a change to the current state value.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments include an apparatus comprising a processor and a computer readable storage medium having computer usable program code. The computer usable program code can be configured to determine whether priority of a requested task is higher than a priority of a currently executing task. The computer usable program code can be further configured to determine whether a value indicates that the currently executing task can be interrupted. The computer usable program code can be configured to trigger execution of the requested task on the processor, if the value indicates that the currently executed task can be interrupted. The computer usable program code can be further configured to wait for lapse of a time period and, interrupt the currently executing task upon detection of lapse of the time period or detection of a change to the value, if the value indicates that the currently executing task cannot be interrupted.
12 Citations
14 Claims
-
1. An apparatus comprising:
-
a processor; and a computer readable storage medium having computer usable program code embodied therewith, the computer usable program code executable by the processor to cause the apparatus to; determine a current state value associated with a currently executing task; store the current state value in a register; determine whether a first priority of a requested task is higher than a second priority of the currently executing task; responsive to a determination that the first priority is higher than the second priority, evaluate the current state value stored in the register and determine a time interval since receiving a request to execute the requested task; in response to evaluating the current state value stored in the register as indicating interruptible or determining the time interval exceeds a threshold, interrupt the currently executing task and trigger execution of the requested task on the processor; and in response to evaluating the current state value stored in the register as indicating uninterruptible and the time interval does not exceed the threshold, execute the requested task in response to detection of one member selected from the group consisting of;
detection of graceful termination of the currently executing task and detection of a change to the current state value. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer program product for executing tasks on a chip, the computer program product comprising:
a computer readable storage medium having computer usable program code embodied therewith, the computer usable program code comprising computer usable program code to; determine a current state value associated with a currently executing task; store the current state value in a register; determine whether a first priority of a requested task is higher than a second priority of the currently executing task; responsive to a determination that the first priority is higher than the second priority, evaluate the current state value stored in the register and determine a time interval since receiving a request to execute the requested task; in response to evaluating the current state value stored in the register as indicating interruptible or determining the time interval exceeds a threshold, interrupt the currently executing task and trigger execution of the requested task on the processor; and in response to evaluating the current state value stored in the register as indicating uninterruptible and the time interval does not exceed the threshold, execute the requested task in response to detection of one member selected from the group consisting of;
detection of graceful termination of the currently executing task and detection of a change to the current state value.- View Dependent Claims (9, 10, 11, 12, 13, 14)
Specification