# US 2016/0252947 A1 · Processor management via thread status

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

- Number: US 2016/0252947 A1
- Document ID: US20160252947A1
- Status: Published application
- Kind: A1
- Application number: 15/150,193
- Filed: 2016-05-09
- Published: 2016-09-01
- Earliest claimed: 2011-03-22
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Bernard A. King-Smith; Bret R. Olszewski; Stephen Rees; Basu Vaidyanathan
- Web page: https://patentgrep.com/patent/US20160252947A1

## CPC

- G06F 1/3228: Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
- G06F 1/3296: by lowering the supply or operating voltage
- G06F 9/4843: {by program, e.g. task dispatcher, supervisor, operating system}
- Y02B 70/10: Technologies improving the efficiency by using switched-mode power supplies [SMPS], i.e. efficient power electronics conversion e.g. power factor correction or reduction of losses in power supplies or efficient standby modes
- 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)
- Y02B: CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- 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

Various systems, processes, and products may be used to manage a processor. In particular implementations, managing a processor may include the ability to determine whether a thread is pausing for a short period of time and place a wait event for the thread in a queue based on a short thread pause occurring. Managing a processor may also include the ability to activate a delay thread that determines whether a wait time associated with the pause has expired and remove the wait event from the queue based on the wait time having expired.

## Claims

### Claim 1

A method implemented by a computer, the method comprising:
determining an expected response time for a data request issued for a first thread running on a processor based on previous data requests issued by other threads;
associating a wait time with the first thread based on the expected response time being longer than a threshold;
storing the wait time in a computer readable storage medium;
determining whether another thread is ready to run;
placing the processor in a lower power mode based on there being no other thread ready to run;
comparing a current time to the stored wait time with the processor;
determining whether the stored wait time has been exceeded;
placing the processor in a higher power mode based on the stored wait time having been exceeded; and
activating the first thread.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
designating the first thread as a paused thread based on the expected response time being longer than the threshold; and
placing the processor in a lower power mode based on there being a paused thread.

### Claim 3 (depends on 2)

The method of claim 2, wherein designating the first thread as a paused thread comprises placing the thread in a queue for waiting threads.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
determining whether to switch the processor from a first partition to a second partition based on there being no other thread ready to run;
switching the processor to the second partition based on the there being no other thread ready to run;
determining whether the wait time has been exceeded; and
switching the processor from the second partition to the first partition based on the wait time having been exceeded.

### Claim 5 (depends on 4)

The method of claim 4, wherein the determination of whether the wait time has been exceeded includes analyzing the wait time for the first thread.

### Claim 6 (depends on 1)

The method of claim 1, further comprising placing the first thread at the end of a thread table based on the expected response time being longer than the threshold.

### Claim 7 (depends on 1)

The method of claim 1, further comprising placing the first thread in a thread table consisting essentially of paused threads based on the expected response time being longer than the threshold.

### Claim 8

A computer program product for managing a processor, the computer program product comprising:
a non-transitory computer readable medium;
first program instructions to determine an expected response time for a data request issued for a first thread running on a processor based on previous data requests issued by other threads;
second program instructions to associate a wait time with the first thread based on the expected response time being longer than a threshold and to store the wait time in a computer readable storage medium;
third program instructions to determine whether another thread is ready to run and to place the processor in a lower power mode based on there being no other thread ready to run;
fourth program instructions to compare a current time to the stored wait time and to determine whether the stored wait time has been exceeded; and
fifth program instructions to place the processor in a higher power mode based on the stored wait time having been exceeded and to activate the first thread;
wherein said program instructions are stored on said computer readable medium.

### Claim 9 (depends on 8)

The computer program product of claim 8, further comprising sixth program instructions to designate the first thread as a paused thread based on the expected response time being longer than the threshold and to place the processor in a lower power mode based on there being a paused thread.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein designating the first thread as a paused thread comprises placing the thread in a queue for paused threads.

### Claim 11 (depends on 8)

The computer program product of claim 8, further comprising seventh program instructions to determine whether to switch the processor from a first partition to a second partition based on there being no other thread ready to run, switch the processor to the second partition based on the there being no other thread ready to run, determine whether the wait time has been exceeded, and switch the processor from the second partition to the first partition based on the wait time having been exceeded.

### Claim 12 (depends on 8)

The computer program product of claim 8, further comprising eighth program instructions to place the first thread at the end of a thread table based on the expected response time being longer than the threshold.

### Claim 13 (depends on 8)

The computer program product of claim 8, further comprising ninth program instructions to place the first thread in a thread table consisting essentially of paused threads based on the expected response time being longer than the threshold.

### Claim 14

A system, comprising:
a processor; and
a memory storing code executable by the processor to:
determine whether a first thread is pausing;
if the first thread is pausing, place a wait event for the first thread in a queue, the wait event comprising a wait time;
in response to the wait event being placed in the queue, determine whether a delay thread has been initiated;
if a delay thread has not been initiated, initiate a delay thread;
in response to the delay thread being initiated, determine whether a second thread is ready to run;
if the second thread is not ready to run, activate the delay thread, the delay thread determining whether the wait time associated with the paused first thread has expired; and
in response to the delay thread determining that the wait time has expired, remove the wait event from the queue and activating the first thread.

### Claim 15 (depends on 14)

The system of claim 14, wherein the code is executable by the processor to:
determine whether a thread wait event is in the queue; and
deactivate the delay thread based on a lack of a thread wait event in the queue.

### Claim 16 (depends on 14)

The system of claim 14, wherein the code is executable by the processor to place the wait event in the queue based on an expected pause time being longer than a threshold.

### Claim 17 (depends on 14)

The system of claim 14, wherein the code is executable by the processor to:
determine whether to switch a processor from a first partition to a second partition based on there being no second thread ready to run;
switch the processor to the second partition based on the there being no second thread ready to run;
determine whether the wait time has been exceeded; and
switch the processor from the second partition to the first partition based on the wait time having been exceeded.

### Claim 18 (depends on 17)

The system of claim 17, wherein the code is executable by the processor to determine whether the wait time has been exceeded by analyzing the wait time for the paused first thread.
