Method for measuring quantity of usage of CPU
AssigneeProtimus Technologies LLC
InventorsSang Ho Lee, Jang Keun Oh
Life of this patent
Estimating the term…
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.
Claims7
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.
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.
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.
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.
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.
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.
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.
Dependencies are inferred from the claim text.