Patent ID: 8683474

Claim:
An accounting apparatus for a program, the accounting apparatus comprising: a memory configured to store a conflict state, a non-conflict state, a conflict time on execution in the conflict state, and a non-conflict time on execution in the non-conflict state; and a physical processor that operates logical processors that share execution resources of the physical processor and executes a procedure, the procedure comprising: determining for the program a conflict state of execution in which a logical processor conflicts with any other logical processor or a non-conflict state of execution in which the logical processor does not conflict with any other logical processor for the shared execution resources of the physical processor, and setting either the conflict state or the non-conflict state as a determined result in the memory, when the program starts to be executed in the logical processor; obtaining time information indicating how long the logical processor is used by the program, and storing a conflict time of execution and a non-conflict time of execution in the memory by referring to the conflict state or the non-conflict state of logical processor in the memory; and calculating an accounting amount for execution of the program in the conflict state of execution and in the non-conflict state of execution, based on a use time calculated from the stored conflict time of execution and a number of logical processors operated in the conflict time of execution, and based on the stored non-conflict time of execution, after the program is ended, wherein the physical processor is further configured to calculate a conversion use time that is a substantial use time of executing the program, based on the conflict time of execution, employing a weighting value determined from utilizing a performance index of the logical processors in the conflict state of execution and the non-conflict state of execution.