Method and apparatus for determining most recently used method
AssigneeInternational Business Machines Corporation
InventorGeoffrey Owen Blandy
Life of this patent
Estimating the term…
Abstract
A method in a data processing system for identifying recently used methods from a plurality of methods in a data processing system, wherein a counter is associated with each method within the plurality of methods. Periodic monitoring is performed to identify an executing method in a current period. The counter is divided using a number of periods since a last period during which the executing method was executed.
Claims19
A method in a data processing system for categorizing methods from a plurality of methods in a data processing system based on recent use and frequent access, wherein a counter is associated with each method within the plurality of methods, the method comprising:
- periodically monitoring for an executing method in a current period;
- incrementing the counter` associated with the executing method in response to detecting the executing method in the current period;
- dividing the counter using a number of periods since a last period during which the executing method was executed;
- and
- using the counter to identify whether the executing method is a most frequently and recently executed method.
A data processing system for identifying recently used methods, the data processing system comprising:
- a plurality of methods, wherein a counter is associated with each method within the plurality of methods;
- monitoring means for periodically monitoring for an executing method in a current period;
- and
- dividing means for dividing the counter using a number of periods since a last period during which the executing method was executed.
A computer program product for use with a data processing system for, the computer program product comprising:
- first instructions for periodically monitoring for an executing method in a current period;
- second instructions for incrementing the counter associated with the executing method in response to detecting the executing method in the current period;
- and
- third instructions for dividing the counter using a number of periods since a last period during which the executing method was executed.
Dependencies are inferred from the claim text.