Method for measuring quantity of usage of CPU
AssigneeMicroconnect, Inc.
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.
Claims30
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;
- 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.
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.
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 plurality of threads during a time interval;
- adding the read execution times of the first plurality 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.
Dependencies are inferred from the claim text.