# US 7,412,354 B2 · Method for measuring quantity of usage of CPU

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

- Number: US 7,412,354 B2
- Document ID: US7412354B2
- Status: Granted
- Kind: B2
- Application number: 11/410,834
- Filed: 2006-04-26
- Published: 2006-09-21
- Granted: 2008-08-12
- Earliest claimed: 2000-08-28
- Assignees: Protimus Technologies LLC
- Inventors: Sang Ho Lee; Jang Keun Oh
- Web page: https://patentgrep.com/patent/US7412354B2

## CPC

- G06F 11/3419: {by assessing time}
- G06F 11/3423: {where the assessed time is active or idle time}
- 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)
- 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

The present invention relates to a method for measuring a quantity of usage of a CPU, in particular to a method for measuring a quantity of usage of a CPU which is capable of getting a credible quantity of usage of a CPU without amending an algorithm in order to adapt it to the an operating system, e.g., MS-Windows System, or requiring a complicated code. The method uses various algorithms provided by the operating system on the behalf of a registry storing a quantity of usage of a CPU inside a system. Accordingly the present invention can measure a quantity of usage of a CPU easily without lowering a performance of the operating system.

## Claims

### Claim 1

A method for measuring processing resource utilization in a personal computer, comprising:
providing an operating system registry containing a processor usage information of a processor in a computer system;
reading execution times of threads during a predetermined timer time interval using one or more manager functions, wherein the threads are executed by the processor;
adding execution time values for each thread that is not a system thread to get a first total;
determining a quantity of usage of the processor using the first total; and
updating the processor usage information in the operating system registry.

### Claim 2

A method for measuring processing resource utilization in a personal computer, comprising:
providing a personal computer executable process algorithm for monitoring the usage of a processor;
reading execution times of threads during a predetermined timer time interval using one or more manager functions, wherein the threads are executed by the processor;
adding execution time values for each thread that is not a system thread to get a first total; and
determining a quantity of usage of the processor using the first total, wherein the quantity of usage is used by the personal computer.

### Claim 3

A method for measuring CPU usage, the CPU executing threads, comprising:
reading the execution times of all threads except for a system thread during a prescribed timer time interval;
adding the values of the execution times to obtain a first sum;
subtracting a second sum of previously executed and stored thread execution times from the first sum to obtain a result; and
calculating a CPU usage by dividing the result by the prescribed timer time interval, wherein the CPU usage is stored in a memory.

### Claim 4

A method for updating a resource utilization value in an updatable usage value register contained in a processing resource circuit, comprising:
reading execution times of a first subset of threads executing during a time interval, the first subset excluding system threads;
adding the read execution times of the first subset of threads to obtain a first total;
calculating a current resource utilization information based on a calculation involving the first total and the time interval; and
updating the updatable usage value register with the current resource utilization information.

### Claim 5

An article including a machine-readable storage medium containing instructions, said instructions, when executed, cause a personal computer to:
provide an operating system registry containing a processor usage information of a processor;
read execution times of threads during a predetermined timer time interval using one or more manager functions when the threads are executed by the processor;
add execution time values for each thread that is not a system thread to get a first total;
determine a quantity of usage of the processor using the first total; and
update the processor usage information in the operating system registry.

### Claim 6

An article including a machine-readable storage medium containing instructions, said instructions, when executed, cause a personal computer to:
provide a personal computer executable process algorithm to monitor the usage of a processor;
read execution times of threads during a predetermined timer time interval using one or more manager functions when the threads are executed by the processor;
add execution time values for each thread that is not a system thread to get a first total;
determine a quantity of usage of the processor using the first total; and
store the quantity of usage of the processor in the personal computer.

### Claim 7

An article including a machine-readable storage medium containing instructions, said instructions, when executed, cause a computer system to:
read the execution times of all threads except for a system thread during a prescribed timer time interval;
add the values of the execution times to obtain a first sum;
subtract a second sum of previously executed and stored thread execution times from the first sum to obtain a result; and
calculate a CPU usage by dividing the result by the prescribed timer time interval; and
use the CPU usage in the computer system.
