IP Library › Granted Patent US 10,802,877
Granted Patent B2
US 10,802,877 · App. 15/773,984 · Granted Oct 13, 2020

Task management methods and system, and computer storage medium

Inventors: Kengyu Lin (Shenzhen, CN); Wenyen Chang (Shenzhen, CN)
Assignee: ONEPLUS TECHNOLOGY (SHENZHEN) CO., LTD.
G06F9/4887G06F1/329G06F9/48G06F9/485G06F9/4881G06F9/5038Y02D10/24Y02D50/20
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,802,877
App. No.
15/773,984
Granted
Oct 13, 2020
Kind
B2
Abstract

A task management method and system, and a computer storage medium include: monitoring the operation of background tasks; determining the allowed operation time of a specific background task in a unit time, the sum of the operation times allowed for all the specific background tasks within the unit time being less than or equal to a preset time threshold; and the respective specific background tasks are brought into a waiting state when the specific background tasks are outside of the corresponding operation period within the unit time.

Claims (48)

1. A task management method, comprising:

monitoring running of background tasks;

determining an allowed running time period of a specific background task within a unit time, a sum of the allowed running time periods of all the specific background tasks within the unit time being less than or equal to a preset time threshold;

putting each specific background task into a waiting state during a time period outside a running time period corresponding to the specific background task within the unit time;

deciding whether there is a foreground task being executed when each specific background task enters the waiting state;

in a case that there is a foreground task being executed, determining that the foreground task obtains all resource utilization time; and

in a case that there is no foreground task being executed, entering a sleep state.

2. The task management method according to claim 1 , further comprising:

after the step of monitoring the running of the background tasks,

establishing a background task group, and setting a resource utilization time limit of the background task group to be the preset time threshold; and

adding the specific background task into the background task group according to a predetermined rule.

3. The task management method according to claim 2 , further comprising:

acquiring priorities of a foreground task under execution and the background tasks in the background task group; and

in a case that the priority of the foreground task is the same as that of the background tasks in the background task group, determining that the allowed running time period of each background task in the background task group within the unit time is obtained by dividing the time threshold by a sum of a total number of the foreground task and a total number of the background tasks in the background task group.

4. The task management method according to claim 3 , further comprising:

after acquiring the priorities of the foreground task under execution and the background tasks in the background task group,

in a case that the priority of the foreground task is different from that of the background tasks in the background task group, determining, according to a predetermined algorithm, the allowed running time period of each background task in the background task group within the unit time on the basis of the priorities of the foreground task and the background tasks in the background task group.

5. A task management system, comprising a processor and a memory for storing a set of instructions executable by the processor, wherein when the instructions are executed by the processor, the processor is configured to:

monitor running of background tasks;

determine an allowed running time period of a specific background task within a unit time, a sum of the allowed running time periods of all the specific background tasks within the unit time being less than or equal to a preset time threshold;

put each specific background task into a waiting state during a time period outside a running time period corresponding to the specific background task within the unit time;

decide whether there is a foreground task being executed when each specific background task enters the waiting state,

in a case that it is decided that there is a foreground task being executed when each specific background task enters the waiting state, determine that the foreground task obtains all resource utilization time; and

in a case that it is decided that there is no foreground task being executed when each specific background task enters the waiting state, enter a sleep state.

6. The task management system according to claim 5 , wherein the processor is further configured to:

establish a background task group, and set a resource utilization time limit of the background task group to be the preset time threshold; and

add the specific background task into the background task group according to a predetermined rule.

7. The task management system according to claim 6 , wherein the processor is further configured to:

acquire priorities of a foreground task under execution and the background tasks in the background task group,

in a case that the priority of the foreground task is the same as that of the background tasks in the background task group, determine that the allowed running time period of each background task in the background task group within the unit time is obtained by dividing the time threshold by a sum of a total number of the foreground task and a total number of the background tasks in the background task group.

8. The task management system according to claim 7 , wherein the processor is further configured to, in the a that the priority of the foreground task is different from that of the background tasks in the background task group, determine, according to a predetermined algorithm, the allowed running time period of each background task in the background task group within the unit time on the basis of the priorities of the foreground task and the background tasks in the background task group.

9. A non-transitory computer storage medium, in which computer-executable instructions are stored, which, when executed by a processor, cause the processor to execute a task management method, wherein the method comprises:

monitoring running of background tasks;

determining an allowed running time period of a specific background task within a unit time, a sum of the allowed running time periods of all the specific background tasks within the unit time being less than or equal to a preset time threshold;

putting each specific background task into a waiting state during a time period outside a running time period corresponding to the specific background task within the unit time;

deciding whether there is a foreground task being executed when each specific background task enters the waiting state;

in a case that there is a foreground task being executed, determining that the foreground task obtains all resource utilization time; and

in a case that there is no foreground task being executed, entering a sleep state.

10. The non-transitory computer storage medium according to claim 9 , wherein the method further comprises:

after the step of monitoring the running of the background tasks,

establishing a background task group, and setting a resource utilization time limit of the background task group to be the preset time threshold; and

adding the specific background task into the background task group according to a predetermined rule.

11. The non-transitory computer storage medium according to claim 10 , wherein the method further comprises:

acquiring priorities of a foreground task under execution and the background tasks in the background task group; and

in a case that the priority of the foreground task is the same as that of the background tasks in the background task group, determining that the allowed running time period of each background task in the background task group within the unit time is obtained by dividing the time threshold by a sum of a total number of the foreground task and a total number of the background tasks in the background task group.

12. The non-transitory computer storage medium according to claim 11 , wherein the method further comprises:

after acquiring the priorities of the foreground task under execution and the background tasks in the background task group,

in a case that the priority of the foreground task is different from that of the background tasks in the background task group, determining, according to a predetermined algorithm, the allowed running time period of each background task in the background task group within the unit time on the basis of the priorities of the foreground task and the background tasks in the background task group.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 21, 2025
From: ONEPLUS TECHNOLOGY (SHENZHEN) CO., LTD .
To: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
Reel/Frame 070295/0379 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 18, 2025
From: ONEPLUS TECHNOLOGY (SHENZHEN) CO., LTD.
To: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
Reel/Frame 070241/0574 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 28, 2018
From: LIN, KENGYU; CHANG, WENYEN
To: ONEPLUS TECHNOLOGY (SHENZHEN) CO., LTD.
Reel/Frame 047160/0563 →
Priority Claims (1)
CN 2015 1 0759800 · Nov 9, 2015 · national
Continuity (1)
Related Publication 20180321972A1 · Nov 8, 2018
Cited By (1)
US 12,717,618