# US 2025/0165287 A1 · Scheduling Tasks in a Processor

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

- Number: US 2025/0165287 A1
- Document ID: US20250165287A1
- Status: Published application
- Kind: A1
- Application number: 19/031,589
- Filed: 2025-01-18
- Published: 2025-05-22
- Earliest claimed: 2018-12-21
- Assignees: Imagination Technologies Limited
- Applicants: Imagination Technologies Limited
- Inventors: Isuru Herath; Richard Broadhurst
- Web page: https://patentgrep.com/patent/US20250165287A1

## CPC

- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 9/3885: {using a plurality of independent parallel functional units}
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A method of scheduling tasks in a processor comprises receiving a plurality of tasks that are ready to be executed, i.e. all their dependencies have been met and all the resources required to execute the task are available, and adding the received tasks to a task queue (or “task pool”). The number of tasks that are executing is monitored and in response to determining that an additional task can be executed by the processor, a task is selected from the task pool based at least in part on a comparison of indications of resources used by tasks being executed and indications of resources used by individual tasks in the task pool and the selected task is then sent for execution.

## Claims

### Claim 1

A computer-implemented method of scheduling tasks in a processor, the method comprising:
receiving a plurality of tasks that are ready to be executed;
determining that an additional task can be executed by the processor;
comparing, for each individual task of the plurality of received tasks, an indication of resources used by the individual task to both an indication of resources used by a set of tasks being executed and an indication of resources used by a set of tasks likely to be executed in the future;
determining that none of the plurality of received tasks share the same or similar indications of resources with the tasks being executed;
selecting the individual task from the plurality of received tasks that is least similar to the set of tasks likely to be executed in the future; and
executing the selected task.

### Claim 2 (depends on 1)

The method according to claim 1, wherein each task has an associated processing state which is an indication of resources used by that task, wherein tasks in an identical processing state execute the same program using the same resources and wherein selecting the individual task from the plurality of received tasks that is least similar to the set of tasks likely to be executed in the future comprises:
selecting a task from the plurality of received tasks that has an associated processing state that does not match any associated processing state of the set of tasks likely to be executed in the future.

### Claim 3 (depends on 1)

The method according to claim 1, wherein each task has an associated processing state which is an indication of resources used by that task, wherein tasks in an identical processing state execute the same program using the same resources and wherein selecting the individual task from the plurality of received tasks that is least similar to the set of tasks likely to be executed in the future comprises:
selecting a task from the plurality of received tasks that has an associated processing state that is least common among the set of tasks likely to be executed in the future.

### Claim 4 (depends on 1)

The method according to claim 1, wherein each task has an associated list of resources used by the task and wherein selecting the individual task from the plurality of received tasks that is least similar to the set of tasks likely to be executed in the future comprises:
selecting a task from the plurality of received tasks which has no resources in common with the set of tasks likely to be executed in the future.

### Claim 5 (depends on 1)

The method according to claim 1, wherein each task has an associated list of resources used by the task and wherein selecting the individual task from the plurality of received tasks that is least similar to the set of tasks likely to be executed in the future comprises:
selecting a task from the plurality of received tasks which has fewest resources in common with the set of tasks likely to be executed in the future.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the resources are one or more of textures, buffers, surfaces and programs accessed by the task.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the individual task is selected based on the comparison of indications of resources and at least one other criteria.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the at least one other criteria comprises one or more of age of the task and a length of time since the task was added to the plurality of received tasks.

### Claim 9 (depends on 1)

The method according to claim 1, where the plurality of received tasks are created in a state order.

### Claim 10

A parallel processing unit comprising:
a scheduler; and
a processing block;
wherein the scheduler comprises logic arranged to:
receive a plurality of tasks that are ready to be executed;
determine that an additional task can be executed by the processor;
compare, for each individual task from the plurality of received tasks, an indication of resources used by the individual task to both an indication of resources used by a set of tasks being executed and an indication of resources used by a set of tasks that are likely to be executed in the future;
determine that none of the plurality of received tasks share the same or similar indications of resources with the set of tasks being executed;
select the individual task from the plurality of received tasks that is least similar to the set of tasks likely to be executed in the future; and
execute the selected task.

### Claim 11 (depends on 10)

The parallel processing unit according to claim 10, wherein each task has an associated processing state which is an indication of resources used by that task, wherein tasks in an identical processing state execute the same program using the same resources and wherein the logic is arranged to select the individual task from the plurality of received tasks that is least similar to the set of tasks likely to be executed in the future by:
selecting a task from the plurality of received tasks which has an associated processing state that does not match an associated processing state of the set of tasks likely to be executed in the future.

### Claim 12 (depends on 10)

The method according to claim 10, wherein each task has an associated list of resources used by that task and wherein selecting the individual task from the plurality of received tasks that is least similar to the set of tasks likely to be executed in the future comprises:
selecting a task from the plurality of received tasks which has no resources in common with the set of tasks likely to be executed in the future.

### Claim 13 (depends on 10)

The method according to claim 10, wherein each task has an associated list of resources used by that task and wherein selecting the individual task from the plurality of received tasks that is least similar to the set of tasks likely to be executed in the future comprises:
selecting a task from the plurality of received tasks having fewest resources in common with the set of tasks likely to be executed in the future.

### Claim 14 (depends on 10)

The parallel processing unit according to claim 10, wherein the resources are one or more of textures, buffers, surfaces and programs accessed by the task.

### Claim 15 (depends on 10)

The parallel processing unit according to claim 10, wherein the logic is arranged to select the individual task based on the comparisons of indications of resources and at least one other criteria.

### Claim 16 (depends on 15)

The parallel processing unit of claim 15, wherein the at least one other criteria is one or more of: age of the task and a length of time since the task was added to the plurality of received tasks.

### Claim 17 (depends on 10)

The parallel processing unit of claim 10, wherein the parallel processing unit is embodied in hardware on an integrated circuit.

### Claim 18 (depends on 10)

The parallel processing unit of claim 10, wherein the parallel processing unit is arranged to repeatedly select an individual task from the plurality of received tasks that is least similar to the set of tasks likely to be executed in the future until a number of executing tasks matches a maximum number of executing tasks.

### Claim 19 (depends on 18)

The parallel processing unit of claim 18, wherein the parallel processing unit determines that an additional task can be executed by the processor when the number of executing tasks is below the maximum number of executing tasks.

### Claim 20

A non-transitory computer readable storage medium having stored thereon computer readable code, which when executed causes a computer to perform a computer-implemented method of scheduling tasks in a processor, comprising:
receiving a plurality of tasks that are ready to be executed;
determining that an additional task can be executed by the processor;
comparing, for each individual task of the plurality of received tasks, an indication of resources used by the individual task to both an indication of resources used by a set of tasks being executed and an indication of resources used by a set of tasks likely to be executed in the future;
determining that none of the plurality of received tasks share the same or similar indications of resources with the tasks being executed;
selecting the individual task from the plurality of received tasks that is least similar to the set of tasks likely to be executed in the future; and
executing the selected task.
