System and method for controlling processor usage according to user input
AssigneeBlackBery Limited
InventorAaron Bradley Small
Life of this patent
Estimating the term…
Abstract
A system and method for controlling processor usage according to user related tasks is provided. For periodic tasks, by increasing the period at which the task runs, the average processor usage can be reduced to meet a particular target which can ensure that user input is not affected by the periodic task. As such, the periodic task can be intelligently degraded and altered to compensate for such degradation in order to free up enough processor usage space so as to not adversely affect user input.
Claims16
A method for controlling usage of a processor in a mobile device, comprising:
- during operation of the processor, determining a periodic task performed by the processor, the periodic task being degradable and comprising a plurality of frames;
- sensing a user input to a user interface of the mobile device being operated by the processor, while the processor is performing the periodic task, the user input corresponding to an interactive user related task to be performed by the processor in response to the user input;
- and
- in response to the sensing of the user input:
- determining a total usage of the processor including a value indicative of usage for performing the periodic task;
- comparing the total usage to a predetermined threshold indicative of a maximum usage for the processor;
- and
- if the total usage does not meet the threshold, degrading the periodic task by removing one or more of the plurality of frames and increasing a period of the periodic task, thereby reducing the total usage such that the threshold is met for an amount of time necessary to compensate for the interactive user related task, and restoring normal operation of the periodic task thereafter.
A mobile device comprising a non-transitory memory for storing computer executable instructions, at least one input mechanism, and a processor for executing the instructions,
- the instructions for:
- during operation of the processor, determining a periodic task performed by the processor, the periodic task being degradable and comprising a plurality of frames;
- sensing a user input to a user interface of the mobile device being operated by the processor, while the processor is performing the periodic task, the user input corresponding to an interactive user related task to be performed by the processor in response to the user input;
- and
- in response to the sensing of the user input:
- determining a total usage of the processor including a value indicative of usage for performing the periodic task;
- comparing the total usage to a predetermined threshold indicative of a maximum usage for the processor;
- and
- if the total usage does not meet the threshold, degrading the periodic task by removing one or more of the plurality of frames and increasing a period of the periodic task, thereby reducing the total usage such that the threshold is met for an amount of time necessary to compensate for the interactive user related task, and restoring normal operation of the periodic task thereafter.
A non-transitory computer readable storage medium storing computer executable instructions, that when executed by a mobile device, cause the mobile device to perform operations comprising:
- during operation of a processor of the mobile device, determining a periodic task performed by the processor, the periodic task being degradable and comprising a plurality of frames;
- sensing a user input to a user interface of the mobile device being operated by the processor, while the processor is performing the periodic task, the user input corresponding to an interactive user related task to be performed by the processor in response to the user input;
- and
- in response to the sensing of the user input:
- determining a total usage of the processor including a value indicative of usage for performing the periodic task;
- comparing the total usage to a predetermined threshold indicative of a maximum usage for the processor;
- and
- if the total usage does not meet the threshold, degrading the periodic task by removing one or more of the plurality of frames and increasing a period of the periodic task, thereby reducing the total usage such that the threshold is met for an amount of time necessary to compensate for the interactive user related task, and restoring normal operation of the periodic task thereafter.
Dependencies are inferred from the claim text.