# US 2026/0300000 A1 · Control Running Concurrent Threads for an Application

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

- Number: US 2026/0300000 A1
- Document ID: US20260300000A1
- Status: Published application
- Kind: A1
- Application number: 19/092,644
- Filed: 2025-03-27
- Published: 2026-10-01
- Earliest claimed: 2025-03-27
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: Kamil Khan; Poorna Kale
- Web page: https://patentgrep.com/patent/US20260300000A1

## CPC

- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/5016: {the resource being the memory}
- G06F 11/3404: {for parallel or distributed programming}
- G06F 11/3409: {for performance assessment}
- G06F 13/1657: {Access to multiple memories}
- G06N 3/092: Reinforcement learning
- G06F 2213/0026: PCI express
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method including: determining a first state of an application running in a computing system, the first state indicating memory resources available to the application; identifying, based on the first state, a first adjustment to a policy configured to control instantiation of threads for the application; instantiating, according to the policy as adjusted by the first adjustment, a plurality of threads to run in parallel in the computing system; assigning a plurality of tasks to the plurality of threads; and distributing, based on the policy as adjusted by the first adjustment, the memory resources to the plurality of threads to perform the plurality of tasks.

## Claims

### Claim 1

A method, comprising:
determining a first state of an application running in a computing system, the first state indicating memory resources available to the application;
identifying, based on the first state, a first adjustment to a policy configured to control instantiation of threads for the application;
instantiating, according to the policy as adjusted by the first adjustment, a plurality of threads to run in parallel in the computing system; and
assigning a plurality of tasks to the plurality of threads.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
distributing, based on the policy as adjusted by the first adjustment, the memory resources to the plurality of threads to perform the plurality of tasks;
wherein the first adjustment changes a count of the plurality of threads to run in parallel for the application.

### Claim 3 (depends on 1)

The method of claim 1, wherein the first adjustment changes a ratio of distributing the memory resources to the plurality of threads.

### Claim 4 (depends on 1)

The method of claim 1, wherein the identifying is further based on a reward model; and the method further comprises:
determining, after completion of the plurality of tasks, a performance of the application; and
computing a first reward based on the performance of the application; and
updating, based on the first reward, the reward model.

### Claim 5 (depends on 4)

The method of claim 4, wherein the determining of the first state includes determining a set of state parameters configured to represent the first state; and wherein the state parameters include runtime memory metrics of memories used by threads running for the application.

### Claim 6 (depends on 5)

The method of claim 5, wherein the state parameters further include task characteristics of at least the plurality of tasks.

### Claim 7 (depends on 4)

The method of claim 4, wherein the performance includes a performance level in execution of instructions of the application.

### Claim 8 (depends on 7)

The method of claim 7, wherein the performance level is measured based on one or more performance counters in a processing device of the computing system.

### Claim 9 (depends on 8)

The method of claim 8, wherein the performance further includes a cost level in memory usage of the application.

### Claim 10 (depends on 9)

The method of claim 9, wherein the first reward is based on the performance level in the execution of the instructions of the application and the cost level in the memory usage.

### Claim 11

A system, comprising:
a processing device; and
a heterogeneous memory system having memory regions of different characteristics;
wherein the system is configured to manage a policy to control a configuration of threads running in parallel for an application.

### Claim 12 (depends on 11)

The system of claim 11, wherein the plurality of memory regions include:
a main memory connected to the processing device via a memory bus; and
a secondary random access memory connected to the processing device via a compute express link fabric that is separate from the memory bus.

### Claim 13 (depends on 12)

The system of claim 12, wherein the configuration controls a count of threads instantiated for concurrent operations of the application.

### Claim 14 (depends on 13)

The system of claim 13, wherein the configuration controls a distribution of memory resources to threads running in parallel for the application.

### Claim 15 (depends on 14)

The system of claim 14, wherein a reinforcement learning technique is implemented in a reinforcement learning agent having a reward model and configured to determine a current state of the application represented by a plurality of state parameters and to determine an adjustment to the policy based on the reward model and the current state.

### Claim 16 (depends on 15)

The system of claim 15, wherein the state parameters include runtime memory metrics and characteristics of tasks to be performed by threads to be instantiated for the application.

### Claim 17

A non-transitory computer storage medium storing instructions which, when executed by a computing system, cause the computing system to perform a method, comprising:
determining an adjustment to a policy configured to control running threads for an application;
measuring a performance of the application running with treads configured according to the policy as adjusted by the adjustment;
computing a first reward based on the performance; and
updating, based on the first reward, the reward model.

### Claim 18 (depends on 17)

The non-transitory computer storage medium of claim 17, wherein the policy controls a count of threads instantiated for parallel operations of the application.

### Claim 19 (depends on 18)

The non-transitory computer storage medium of claim 18, wherein the policy further controls a ratio of distributing memory resources available to the application to threads running in parallel for the application.

### Claim 20 (depends on 19)

The non-transitory computer storage medium of claim 19, wherein the adjustment is determined based on a set of state parameters configured to represent a current state of the application running in the computing system; the state parameters include runtime memory metrics of memory currently being used by the application and characteristics of at least a next set of tasks to be assigned to threads.
