IP Library Granted Patent US 8,438,572
Granted Patent B2
US 8,438,572 · App. 12/282,489 · Granted May 7, 2013

Task scheduling method and apparatus

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 8,438,572
App. No.
12/282,489
Granted
May 7, 2013
Kind
B2
Abstract

A method of scheduling execution of a plurality of tasks by a processor, the processor having a processor memory, the processor being arranged to load into the processor memory, during execution of a current task, data for a task that is scheduled for execution after the processor has completed the current task, the method comprising the steps of scheduling a next task for execution by the processor after the processor has completed a current task, and determining whether there is a high priority task to be executed by the processor, if there is a high priority task to be executed by the processor: determining whether the processor has begun loading the data for the next task into the processor memory, and if the processor has not begun loading the data for the next task into the processor memory, scheduling the high priority task, instead of the next task, for execution by the processor after the processor has completed the current task.

Claims (70)

1. A method of scheduling execution of a plurality of tasks by a processor, the processor having a processor memory, the processor being arranged to load into the processor memory, during execution of a current task, data for execution of a task that is scheduled for execution after the processor has completed the current task, the method comprising:

executing by the processor a current task;

scheduling a next task for execution by the processor;

after scheduling the next task, determining whether there is a high priority task to be executed by the processor; and

if there is a high priority task to be executed by the processor:

determining whether the processor has begun loading data for execution of the next task into the processor memory;

if the processor has not begun loading the data for execution of the next task into the processor memory, scheduling the high priority task, instead of the next task, for execution by the processor after the processor has completed the current task; and

if the processor has begun loading the data for execution of the next task into the processor memory, maintaining the next task as scheduled for execution after the processor has completed the current task.

2. A method according to claim 1 , in which each task of the tasks has an associated priority and determining whether there is a high priority task comprises determining whether there is a task having a higher priority than the next task.

3. A method according to claim 1 , wherein:

the loading into the processor memory of the data for execution of the task that is scheduled for execution after the processor has completed the current task is by a direct-memory-access process.

4. The method of claim 1 , wherein;

the processor has a first buffer and a second buffer;

data for execution of the current task is stored in the first buffer; and

the data for execution of the next task is stored in the second buffer.

5. The method of claim 1 , further comprising if the processor maintains the next task as scheduled for execution after the processor has completed the current task, beginning execution of an auxiliary operation of the high priority task before the processor has completed execution of the next task, wherein the auxiliary operation of the high priority task is selected from a group consisting of:

updating a time-dependent variable;

updating a variable that is dependent on a number of scheduling time points that have passed for the unexecuted task; and

updating task statistics.

6. The method of claim 1 , wherein:

the plurality of tasks comprises a plurality of periodic tasks; and

the method further comprises:

adopting a method of scheduling non-periodic tasks,

determining whether a task is periodic; and

if the task is determined to be non-periodic, scheduling the task by the adopted method of scheduling non-periodic tasks.

7. The method of claim 6 , wherein:

determining whether a task is periodic comprises determining that task management tasks are non-periodic; and

the method further comprises assigning a lowest priority to task management tasks.

8. The method of claim 1 , wherein determining that there is a high priority task is not based upon whether the processor has begun loading the data for execution of the next task into the processor memory.

9. The method of claim 1 , further comprising scheduling the high priority task for execution after the processor has completed the next task if the processor has begun loading the data for execution of the next task into the processor memory.

10. An apparatus for scheduling execution of a plurality of tasks by a processor, the apparatus comprising:

the processor, having a processor memory, to execute a current task and to load into the processor memory, during execution of a current task, data for execution of a next task, wherein the scheduled execution of the next task is after the completion of the current task;

a scheduler to schedule the next task for execution by the processor and to determine, after scheduling the next task for execution, whether there is a high priority task to be executed by the processor, wherein the scheduler, if there is a high priority task to be executed by the processor, is to:

determine whether the processor has begun loading the data for execution of the next task into the processor memory;

if the processor has not begun loading the data for execution of the next task into the processor memory, to schedule the high priority task, instead of the next task, for execution by the processor after the processor has completed the current task; and

if the processor has begun loading the data for execution of the next task into the processor memory, to maintain the next task as scheduled for execution after the processor has completed the current task.

11. An apparatus according to claim 10 , in which the scheduler, if there is a high priority task to be executed by the processor and if the processor has begun loading the data for execution of the next task into the processor memory, to schedule the high priority task for execution after the processor has completed the next task.

12. An apparatus according to claim 10 , in which each task of the tasks has an associated priority and the scheduler is to determine whether there is a high priority task by determining whether there is a task of the tasks having a higher priority than the next task.

13. The apparatus of claim 10 , wherein:

the processor memory has a first buffer and a second buffer;

data for execution of the current task is stored in the first buffer; and

the data for execution of the next task is stored in the second buffer.

14. The apparatus of claim 10 , wherein the loading data for execution of the next task into the processor memory during execution of the current task is loading by a direct-memory-access process.

15. The apparatus of claim 10 , wherein, if the processor maintains the next task as scheduled for execution after the processor has completed the current task, the processor is further to begin execution of an auxiliary operation of the high priority task before the processor has completed execution of the next task, wherein the auxiliary operation of the high priority task is selected from a group consisting of:

updating a time-dependent variable;

updating a variable that is dependent on a number of scheduling time points that have passed for the unexecuted task; and

updating task statistics.

16. The apparatus of claim 10 , wherein:

the plurality of tasks comprises a plurality of periodic tasks and a plurality of non-periodic tasks; and

the scheduler is to:

adopt a method of scheduling non-periodic tasks,

determine whether a task is periodic; and

if the task is determined to be non-periodic, schedule the task by the adopted method of scheduling non-periodic tasks.

17. The apparatus of claim 16 , wherein:

determining whether a task is periodic comprises determining that task management tasks are non-periodic; and

the scheduler is to assign a lowest priority to task management tasks.

18. A non-transitory computer-readable medium comprising a plurality of instructions to manipulate one or more processors on one or more computing devices, the plurality of instructions comprising:

instructions to execute a current task by a processor of the one or more processors;

instructions to schedule a next task for execution by the processor;

instructions to determine whether there is a high priority task to be executed by the processor, the determination to be made after the scheduling the next task;

instructions to determine whether the processor has begun loading data for execution of the next task into a memory of the processor memory, if there is a high priority task to be executed by the processor;

instructions to schedule the high priority task, instead of the next task, for execution by the processor after the processor has completed the current task if the processor has not begun loading the data for execution of the next task into the processor memory; and

instructions to maintain the next task as scheduled for execution after the processor has completed the current task if there is a high priority task to be executed by the processor and if the processor has begun loading the data for execution of the next task into the processor memory.

19. The computer-readable medium of claim 18 , wherein:

the next task has a priority; and

determining whether there is a high priority task comprises determining whether there is a task having a higher priority than the next task.

20. The computer-readable medium of claim 18 , further comprising instructions to begin execution of an auxiliary operation of the high priority task before the processor has completed execution of the next task, if the processor maintains the next task as scheduled for execution after the processor has completed the current task, wherein the auxiliary operation of the high priority task is selected from a group consisting of:

updating a time-dependent variable;

updating a variable that is dependent on a number of scheduling time points that have passed for the unexecuted task; and

updating task statistics.

Assignments (32)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 13, 2025
From: NXP USA, INC.
To: TAIWAN SEMICONDUCTOR MANUFACTURING COMPANY LIMITED
Reel/Frame 072889/0939 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 11759915 AND REPLACE IT WITH APPLICATION 11759935 PREVIOUSLY RECORDED ON REEL 040925 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE RELEASE OF SECURITY INTEREST. Recorded Feb 17, 2020
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP, B.V. F/K/A FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 052917/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 11759915 AND REPLACE IT WITH APPLICATION 11759935 PREVIOUSLY RECORDED ON REEL 040928 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE RELEASE OF SECURITY INTEREST. Recorded Jan 17, 2020
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 052915/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 11759915 AND REPLACE IT WITH APPLICATION 11759935 PREVIOUSLY RECORDED ON REEL 037486 FRAME 0517. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS. Recorded Dec 10, 2019
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 053547/0421 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 039361 FRAME 0212. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded Oct 22, 2019
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 051029/0387 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 042762 FRAME 0145. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded Oct 22, 2019
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 051145/0184 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 038017 FRAME 0058. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded Oct 22, 2019
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 051030/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 042985 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded Oct 22, 2019
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 051029/0001 →
RELEASE OF SECURITY INTEREST Recorded Sep 10, 2019
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 050745/0001 →
RELEASE OF SECURITY INTEREST Recorded Sep 10, 2019
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 050744/0097 →
CORRECTIVE ASSIGNMENT TO CORRECT THE TO CORRECT THE APPLICATION NO. FROM 13,883,290 TO 13,833,290 PREVIOUSLY RECORDED ON REEL 041703 FRAME 0536. ASSIGNOR(S) HEREBY CONFIRMS THE THE ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS.. Recorded Feb 20, 2019
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: SHENZHEN XINGUODU TECHNOLOGY CO., LTD.
Reel/Frame 048734/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE NATURE OF CONVEYANCE PREVIOUSLY RECORDED AT REEL: 040632 FRAME: 0001. ASSIGNOR(S) HEREBY CONFIRMS THE MERGER AND CHANGE OF NAME. Recorded Sep 21, 2017
From: FREESCALE SEMICONDUCTOR INC.
To: NXP USA, INC.
Reel/Frame 044209/0047 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12681366 PREVIOUSLY RECORDED ON REEL 038017 FRAME 0058. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded May 9, 2017
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 042985/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12681366 PREVIOUSLY RECORDED ON REEL 039361 FRAME 0212. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded May 9, 2017
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 042762/0145 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE PATENTS 8108266 AND 8062324 AND REPLACE THEM WITH 6108266 AND 8060324 PREVIOUSLY RECORDED ON REEL 037518 FRAME 0292. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS. Recorded Feb 1, 2017
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 041703/0536 →
CHANGE OF NAME Recorded Nov 8, 2016
From: FREESCALE SEMICONDUCTOR, INC.
To: NXP USA, INC.
Reel/Frame 040632/0001 →
RELEASE OF SECURITY INTEREST Recorded Nov 7, 2016
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 040928/0001 →
RELEASE OF SECURITY INTEREST Recorded Sep 21, 2016
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP, B.V., F/K/A FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 040925/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12092129 PREVIOUSLY RECORDED ON REEL 038017 FRAME 0058. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Recorded Jul 14, 2016
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 039361/0212 →
SUPPLEMENT TO THE SECURITY AGREEMENT Recorded Jun 16, 2016
From: FREESCALE SEMICONDUCTOR, INC.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 039138/0001 →
SECURITY AGREEMENT SUPPLEMENT Recorded Mar 7, 2016
From: NXP B.V.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 038017/0058 →
ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS Recorded Jan 13, 2016
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 037518/0292 →
ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS Recorded Jan 12, 2016
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 037486/0517 →
PATENT RELEASE Recorded Dec 21, 2015
From: CITIBANK, N.A., AS COLLATERAL AGENT
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 037356/0143 →
PATENT RELEASE Recorded Dec 21, 2015
From: CITIBANK, N.A., AS COLLATERAL AGENT
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 037354/0757 →
PATENT RELEASE Recorded Dec 21, 2015
From: CITIBANK, N.A., AS COLLATERAL AGENT
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 037356/0553 →
SECURITY AGREEMENT Recorded Nov 6, 2013
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 031591/0266 →
SECURITY AGREEMENT Recorded Jun 18, 2013
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 030633/0424 →
SECURITY AGREEMENT Recorded May 13, 2010
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS COLLATERAL AGENT
Reel/Frame 024397/0001 →
SECURITY AGREEMENT Recorded Mar 15, 2010
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A.
Reel/Frame 024085/0001 →
SECURITY AGREEMENT Recorded Dec 9, 2008
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A.
Reel/Frame 021936/0772 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 11, 2008
From: FECIORU, MIHAI-DANIEL
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 021515/0288 →