# US 11,249,807 B2 · Organizing tasks by a hierarchical task scheduler for execution in a multi-threaded processing system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,249,807 B2
- Document ID: US11249807B2
- Status: Granted
- Kind: B2
- Application number: 15/011,127
- Filed: 2016-01-29
- Published: 2016-08-18
- Granted: 2022-02-15
- Earliest claimed: 2013-11-12
- Assignees: Oxide Interactive, LLC
- Applicants: Oxide Interactive, LLC
- Inventors: Timothy James Kipp
- Web page: https://patentgrep.com/patent/US11249807B2

## CPC

- G06F 9/5038: {considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration (scheduling strategies G06F9/4881 and subgroups)}
- G06F 9/46: Multiprogramming arrangements
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/50: Allocation of resources, e.g. of the central processing unit [CPU]
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 9/526: {Mutual exclusion algorithms}
- G06F 2209/483: Multiproc
- G06F 2209/521: Atomic
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for scheduling tasks from a program executed by a multi-processor core system is disclosed. The method includes a scheduler that groups a plurality of tasks, each having an assigned priority, by priority in a task group. The task group is assembled with other task groups having identical priorities in a task group queue. A hierarchy of task group queues is established based on priority levels of the assigned tasks. Task groups are assigned to one of a plurality of worker threads based on the hierarchy of task group queues. Each of the worker threads is associated with a processor in the multi-processor system. The tasks of the task groups are executed via the worker threads according to the order in the hierarchy.

## Claims

### Claim 1

A multi-thread system, comprising:
a first processor core configured to receive a first task group including a first plurality of tasks of a program and a second task group including a second plurality of tasks of the program, the first task group defining a first workload threshold for executing the first plurality of tasks, the first workload threshold defining a maximum number of worker threads that can concurrently execute the first plurality of tasks, the second task group defining a second workload threshold for executing the second plurality of tasks, the second workload threshold defining a maximum number of worker threads that can concurrently execute the second plurality of tasks, the first processor core being further configured to schedule the first plurality of tasks to be concurrently executed on a first plurality of worker threads, a number of worker threads in the first plurality of worker threads being determined by the first workload threshold and schedule the second plurality of tasks to be concurrently executed on a second plurality of worker threads, a number of worker threads in the second plurality of worker threads being determined by the second workload threshold, the first processor core being configured to schedule the first plurality of tasks and the second plurality of tasks based further on criteria that includes at least one of an availability of the worker threads in the first set of worker threads and the second set of worker threads, a status of the worker threads in the first set of worker threads and the second set of worker threads, a priority level of the plurality of tasks, a number of outstanding tasks, a status of the program, or an availability of memory associated with the worker threads in the first set of worker threads and the second set of worker threads; and
a second processor core configured to send to the first processor core a task status signal indicative of a status of the first plurality of tasks or the second plurality of tasks, the first processor core adjusting an order or priority of the first plurality of tasks or the second plurality of tasks in response to the task status signal.

### Claim 2 (depends on 1)

The multi-thread system of claim 1, wherein the task status signal indicative of the status of the first plurality of tasks or the second plurality of tasks is indicative of an amount of time worked on the first plurality of tasks or the second plurality of tasks, a unique identifier of the worker thread executing the first plurality of tasks or the second plurality of tasks, a state of the worker thread executing the first plurality of tasks or the second plurality of tasks, or a time spent in the state by the worker thread executing the first plurality of tasks or the second plurality of tasks.

### Claim 3 (depends on 1)

The multi-thread system of claim 1, wherein the first plurality of tasks is initially scheduled to be concurrently executed on the first plurality of worker threads, and wherein adjusting the order or priority of the first plurality of tasks includes assigning one of the first plurality of tasks to be executed by an additional worker thread.

### Claim 4 (depends on 1)

The multi-thread system of claim 1, wherein adjusting the order or priority of the plurality of tasks includes pausing execution of at least one of the first plurality of tasks or the second plurality of tasks.

### Claim 5 (depends on 1)

The multi-thread system of claim 1, wherein adjusting the order or priority of the plurality of tasks includes ending execution of at least one of the first plurality of tasks or the second plurality of tasks.

### Claim 6 (depends on 1)

The multi-thread system of claim 1, wherein the first processor core is further configured to organize the first task group and the second task group according to predetermined criteria in a task group queue and creates a hierarchy of task group queues.

### Claim 7 (depends on 6)

The multi-thread system of claim 6, wherein the first processor core is configured to assign the first plurality of tasks to be executed on the first set of one or more worker threads based further on the hierarchy of task group queues.

### Claim 8 (depends on 7)

The multi-thread system of claim 7, wherein the first processor core is configured to assign a single one of the worker threads to execute the first plurality of tasks in the first task group.

### Claim 9 (depends on 6)

The multi-thread system of claim 6, wherein the first processor core is configured to receive a signal from the first task group indicating that all of the first plurality of tasks of the first task group have been completed by the first set of one or more worker threads.

### Claim 10 (depends on 1)

The multi-thread system of claim 1, wherein the first processor core and the second processor core are cores of a single processing unit, and wherein the single processing unit is a central processing unit, a graphics processing unit, or an accelerated processing unit.

### Claim 11 (depends on 1)

The multi-thread system of claim 1, wherein the first set of one or more worker threads includes one or more worker threads of the first processor core, the second processor core, or both the first processor core and the second processor core.

### Claim 12 (depends on 1)

The multi-thread system of claim 1, wherein at least one tasks of the first plurality of tasks has an identical priority level as at least one task of the second plurality of tasks.

### Claim 13 (depends on 1)

The multi-thread system of claim 1, wherein a first task of the first plurality of tasks has a first priority level, and a second task of the first plurality of tasks has a second priority level different than the first priority level, such that the first task of the first plurality of tasks and the second task of the first plurality of tasks can be concurrently executed by different worker threads of the first plurality of worker threads.
