# US 12,443,456 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 12,443,456 B2
- Document ID: US12443456B2
- Status: Granted
- Kind: B2
- Application number: 18/470,563
- Filed: 2023-09-20
- Published: 2024-01-18
- Granted: 2025-10-14
- Earliest claimed: 2013-11-12
- Assignees: Oxide Interactive, LLC
- Applicants: Oxide Interactive, Inc.
- Inventors: Timothy James Kipp
- Web page: https://patentgrep.com/patent/US12443456B2

## 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 schedule, at a first time, a first plurality of tasks of a first task group to be concurrently executed on a first plurality of worker threads; and
a second processor core configured to acquire a next task of the first plurality of tasks via an atomic exchange function performed on a pointer to a position in the first plurality of tasks, wherein:
the second processor, in response to the completion of a first task by a first worker thread of the first plurality of worker threads, acquires the next task for the first plurality of worker threads;
the first processor core is further configured to schedule, at a second time after the first time, a second plurality of tasks to be concurrently executed on the first plurality of worker threads;
the second processor core is configured to determine, via a result of the atomic exchange function, that the first plurality of tasks is completed;
the second processor core is configured to determine, via a result of the atomic exchange function, that the first task group is completed; and
the second processor core is configured to trigger a synchronized exit from the first task group by the first plurality of worker threads.

### Claim 2 (depends on 1)

The multi-thread system of claim 1, wherein the atomic exchange function is an atomic increment function.

### Claim 3 (depends on 1)

The multi-thread system of claim 1, wherein the atomic exchange function is an atomic add function.

### Claim 4 (depends on 1)

The multi-thread system of claim 1, wherein second processor core is configured to, based at least upon the determination that the first task group is completed, send a task group status signal to the first processor core, the task group status indicating that the first task group is completed.

### Claim 5 (depends on 4)

The multi-thread system of claim 4, wherein the first processor core is configured, based at least upon the task group status signal, to schedule a second plurality of tasks of a second task group to be concurrently executed on a second plurality of worker threads, the second plurality of worker threads comprising one or more worker threads of the first plurality of worker threads.
