# US 2016/0239345 A1 · Apparatus and method for managing a plurality of threads in an operating system

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

- Number: US 2016/0239345 A1
- Document ID: US20160239345A1
- Status: Published application
- Kind: A1
- Application number: 14/622,465
- Filed: 2015-02-13
- Published: 2016-08-18
- Earliest claimed: 2015-02-13
- Assignees: Honeywell International Inc.
- Applicants: Honeywell International, Inc.
- Inventors: Elliott Rachlin
- Web page: https://patentgrep.com/patent/US20160239345A1

## 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/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method includes using processing circuitry and at least one memory configured to store a plurality of threads. The method includes providing an environment associated with an operating system to execute one or more threads of the plurality of threads. The environment includes a plurality of virtual priorities and a plurality of actual priorities. Each of the plurality of threads is allowed to select a virtual priority of the plurality of virtual priorities. The method also includes associating an actual priority of the plurality of actual priorities to one of the plurality of threads based on the plurality of virtual priorities assigned to the plurality of threads. The method also includes executing the one of the plurality of threads associated with the actual priority.

## Claims

### Claim 1

A method for managing a plurality of threads, the method comprising:
providing an environment associated with an operating system to execute one or more threads of the plurality of threads, the environment comprising a plurality of virtual priorities and a plurality of actual priorities, wherein each of the plurality of threads selects a virtual priority of the plurality of virtual priorities;
associating an actual priority of the plurality of actual priorities to one of the plurality of threads based on the plurality of virtual priorities assigned to the plurality of threads; and
executing the one of the plurality of threads associated with the actual priority.

### Claim 2 (depends on 1)

The method of claim 1, wherein associating the actual priority comprises:
identifying a thread of the plurality of threads with a highest virtual priority; and
associating the actual priority to the thread with the highest virtual priority.

### Claim 3 (depends on 1)

The method of claim 1, wherein the actual priority is an actual priority 3, and wherein the plurality of threads comprises a scheduler thread, the method further comprising:
associating the scheduler thread with an actual priority 2, wherein the scheduler thread controls associating the plurality of actual priorities with the plurality of threads.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
responsive to the actual priority 3 being unassociated, executing a thread selection algorithm.

### Claim 5 (depends on 3)

The method of claim 3, further comprising:
calling, by the executed thread associated with the actual priority 3, a thread selection algorithm.

### Claim 6 (depends on 1)

The method of claim 1, wherein the actual priority is an actual priority 3, further comprising:
associating one or more threads of the plurality of threads with an actual priority 4, wherein the one or more threads are blocked from execution during an input or output function.

### Claim 7 (depends on 6)

The method of claim 6, wherein the actual priority is an actual priority 4, further comprising:
responsive to completion of the input or output function, executing the thread selection algorithm.

### Claim 8 (depends on 1)

The method of claim 1, wherein the executed thread calls an inhibit interrupts function or an inhibit task scheduling function.

### Claim 9 (depends on 1)

The method of claim 1, wherein the executed thread calls an enable interrupts function or an enable task scheduling function.

### Claim 10 (depends on 1)

The method of claim 1, wherein the actual priority is an actual priority 3, further comprising: responsive to a termination of the executed thread, associating the executed thread with an actual priority 1.

### Claim 11

An apparatus comprising:
at least one memory configured to store a plurality of threads; and
processing circuitry configured to:
provide an environment associated with an operating system to execute one or more threads of the plurality of threads, the environment comprising a plurality of virtual priorities and a plurality of actual priorities, wherein each of the plurality of threads selects a virtual priority of the plurality of virtual priorities;
associate an actual priority of the plurality of actual priorities to one of the plurality of threads based on the plurality of virtual priorities assigned to the plurality of threads; and
execute the one of the plurality of threads associated with the actual priority.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein associating the actual priority comprises the processing circuitry further configured to:
identify a thread of the plurality of threads with a highest virtual priority; and
associate the actual priority to the thread with the highest virtual priority.

### Claim 13 (depends on 11)

The apparatus of claim 11, wherein the actual priority is an actual priority 3, wherein the plurality of threads comprises a scheduler thread, wherein the processing circuitry is further configured to:
associate the scheduler thread with an actual priority 2, wherein the scheduler thread controls associating the plurality of actual priorities with the plurality of threads.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the processing circuitry is further configured to:
responsive to the actual priority 3 being unassociated, execute a thread selection algorithm.

### Claim 15 (depends on 13)

The apparatus of claim 13, wherein the processing circuitry is further configured to:
call, by the executed thread associated with the actual priority 3, a thread selection algorithm.

### Claim 16 (depends on 11)

The apparatus of claim 11, wherein the actual priority is an actual priority 3, wherein the processing circuitry is further configured to:
associate one or more threads of the plurality of threads with an actual priority 4, wherein the one or more threads are blocked from execution during an input or output function.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein the actual priority is an actual priority 4, wherein the processing circuitry is further configured to:
responsive to completion of the input or output function, execute the thread selection algorithm.

### Claim 18 (depends on 11)

The apparatus of claim 11, wherein the executed thread calls an inhibit interrupts function or an inhibit task scheduling function.

### Claim 19 (depends on 11)

The apparatus of claim 11, wherein the executed thread calls an enable interrupts function or an enable task scheduling function.

### Claim 20 (depends on 11)

The apparatus of claim 11, wherein the actual priority is an actual priority 3, wherein the processing circuitry is further configured to:
responsive to a termination of the executed thread, associate the executed thread with an actual priority 1.
