Interruption of chip component managing tasks
First Claim
1. A method comprising:
- determining a current state value associated with a currently executing task at a microcontroller of a chip;
storing the current state value in a register;
determining whether a first priority of a requested task is higher than a second priority of the currently executing task;
in response to determining that the first priority is higher than the second priority, evaluating the current state value stored in the register and determining 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, interrupting the currently executing task and triggering execution of the requested task on the chip; 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, executing 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 receiving, at a microcontroller of a chip, a request to execute a first task having a first priority. Embodiments further include determining that a second task having a second priority is currently executing. Embodiments further include determining that the first priority is higher than the second priority. Embodiments further include determining whether a value in a register indicates that the second task can be interrupted. If it is determined that the second task can be interrupted, embodiments further include triggering execution of the second task. If it is determined that the second task cannot be interrupted, embodiments further include waiting for lapse of a time period since receipt of the request to execute the first task, and interrupting the second task upon detecting lapse of the time period, or detecting, prior to the lapse of the time period, that the second task can be interrupted.
12 Citations
6 Claims
-
1. A method comprising:
-
determining a current state value associated with a currently executing task at a microcontroller of a chip; storing the current state value in a register; determining whether a first priority of a requested task is higher than a second priority of the currently executing task; in response to determining that the first priority is higher than the second priority, evaluating the current state value stored in the register and determining 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, interrupting the currently executing task and triggering execution of the requested task on the chip; 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, executing 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)
-
Specification