IP Library Granted Patent US 10,503,549
Granted Patent B2
US 10,503,549 · App. 16/027,773 · Granted Dec 10, 2019

Time critical tasks scheduling

Inventors: Sundeep Chandhoke (Austin, TX); Herbert K. Salmon, IV (Austin, TX)
Assignee: National Instruments Corporation
G06F9/4887G06F9/4825G06F2209/486
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,503,549
App. No.
16/027,773
Granted
Dec 10, 2019
Kind
B2
Abstract

A method and system for scheduling a time critical task. The system may include a processing unit, a hardware assist scheduler, and a memory coupled to both the processing unit and the hardware assist scheduler. The method may include receiving timing information for executing the time critical task, the time critical task executing program instructions via a thread on a core of a processing unit and scheduling the time critical task based on the received timing information. The method may further include programming a lateness timer, waiting for a wakeup time to obtain and notifying the processing unit of the scheduling. Additionally, the method may include executing, on the core of the processing unit, the time critical task in accordance with the scheduling, monitoring the lateness timer, and asserting a thread execution interrupt in response to the lateness timer expiring, thereby suspending execution of the time critical task.

Claims (46)

1. An apparatus for scheduling tasks, the apparatus comprising:

a hardware assist scheduler associated with physical hardware,

wherein the hardware assist scheduler is configured to:

receive timing information for executing a time critical task, wherein the time critical task is associated with a process of the physical hardware and wherein the time critical task executes program instructions via a thread on a core of a processing unit, wherein the processing unit is configured to communicate with the hardware assist scheduler;

determine a schedule for the time critical task based on received timing information, wherein the schedule comprises a wakeup time, a specified thread bandwidth, and an overall thread deadline, wherein the overall thread deadline is based on a cycle time and suspend latency of the thread; and

cause the core of the processing unit to execute the time critical task according to the schedule.

2. The apparatus of claim 1 , wherein the hardware assist scheduler is further configured to:

suspend execution of the time critical task.

3. The apparatus of claim 2 , wherein said suspending execution of the time critical task is in response to expiration of a lateness timer.

4. The apparatus of claim 3 , wherein the lateness timer is based on the wakeup time.

5. The apparatus of claim 1 , wherein the hardware assist scheduler is further configured to:

notify the processing unit that the thread is in an idle state, wherein the idle state indicates that the thread is awake and ready to resume execution and execute the time critical task in accordance with the schedule.

6. The apparatus of claim 5 ,

wherein to notify the processing unit, the hardware assist scheduler is further configured to:

perform a memory write to a memory monitored by the processing unit.

7. The apparatus of claim 1 ,

wherein the overall thread deadline is based on the difference between the cycle time and the suspend latency.

8. The apparatus of claim 1 ,

wherein the schedule further comprises a time critical task deadline.

9. The apparatus of claim 1 , wherein the thread comprises a multiplexed thread, wherein the multiplexed thread is executed on the core of the processing unit, and wherein the multiplexed thread comprises:

one or more time critical tasks; and

a best effort task.

10. A non-transitory computer readable memory medium storing program instructions executable by at least one processor to:

determine a schedule for a time critical task based on received timing information, wherein the schedule comprises a wakeup time, a specified thread bandwidth, and an overall thread deadline, wherein the overall thread deadline is based on a cycle time and suspend latency of the thread; and

execute the time critical task according to the schedule, wherein the time critical task executes program instructions via a thread on a core of a processing unit in accordance with the schedule.

11. The non-transitory computer readable memory medium of claim 10 , wherein the program instructions are further executable to:

suspend execution of the time critical task.

12. The non-transitory computer readable memory medium of claim 11 , wherein to suspend execution of the time critical task, the program instructions are further executable to:

perform a memory write to a memory monitored by the processing unit.

13. The non-transitory computer readable memory medium of claim 10 ,

wherein the overall thread deadline is based on the difference between the cycle time and the suspend latency.

14. The non-transitory computer readable memory medium of claim 10 , wherein to determine the schedule, the program instructions are further executable to:

determine a thread cycle time.

15. The non-transitory computer readable memory medium of claim 10 , wherein the thread comprises a multiplexed thread, wherein the multiplexed thread is executed on the core of the processing unit, and wherein the multiplexed thread comprises:

one or more time critical tasks; and

a best effort task.

16. A method for monitoring a time critical task, the method comprising:

determining a schedule for the time critical task based on received timing information, wherein the schedule comprises a wakeup time, a specified thread bandwidth, and an overall thread deadline, wherein the overall thread deadline is based on a cycle time and suspend latency of the thread; and

executing the time critical task according to the schedule, wherein the time critical task executes program instructions via a thread on a core of a processing unit in accordance with the schedule.

17. The method of claim 16 , wherein the time critical task is a function of the overall thread deadline and the specified thread bandwidth.

18. The method of claim 16 , further comprising:

notifying the processing unit that the thread is in an idle state, wherein the idle state indicates that the thread is awake and ready to resume execution and execute the time critical task in accordance with the schedule.

19. The method of claim 15 , wherein the overall thread deadline is based on the difference between the cycle time and the suspend latency.

20. The method of claim 15 , wherein the thread comprises a multiplexed thread, wherein the multiplexed thread is executed on the core of the processing unit, and wherein the multiplexed thread comprises:

one or more time critical tasks; and

a best effort task.

Assignments (5)
RELEASE OF SECURITY INTEREST IN PATENTS (REEL/FRAME 057280/0028) Recorded Oct 13, 2023
From: WELLS FARGO BANK, NATIONAL ASSOCIATION, AS ADMINISTRATIVE AGENT
To: NATIONAL INSTRUMENTS CORPORATION
Reel/Frame 065231/0466 →
RELEASE OF SECURITY INTEREST IN PATENTS (REEL/FRAME 052935/0001) Recorded Oct 13, 2023
From: WELLS FARGO BANK, NATIONAL ASSOCIATION, AS ADMINISTRATIVE AGENT
To: NATIONAL INSTRUMENTS CORPORATION; PHASE MATRIX, INC.
Reel/Frame 065653/0463 →
SECURITY INTEREST Recorded Jun 18, 2021
From: NATIONAL INSTRUMENTS CORPORATION
To: WELLS FARGO BANK, NATIONAL ASSOCIATION
Reel/Frame 057280/0028 →
SECURITY INTEREST Recorded Jun 14, 2020
From: NATIONAL INSTRUMENTS CORPORATION; PHASE MATRIX, INC.
To: WELLS FARGO BANK, NATIONAL ASSOCIATION
Reel/Frame 052935/0001 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 5, 2018
From: CHANDHOKE, SUNDEEP; SALMON, HERBERT K., IV
To: NATIONAL INSTRUMENTS CORPORATION
Reel/Frame 046271/0219 →