Patent ID: 7703095
Filing Date: 2010-04-20
Classification: G06F

Abstract:
1. A control method for storing a number of events, which have occurred in a central processing unit that is executing a thread, into a thread storage area where the thread thus executed is accessible in a user mode, in an information processing unit comprising a plurality of central processing units, wherein said information processing apparatus further comprises an occurrence number counter, which is provided correspondingly to each central processing unit of the plurality of central processing units, and which counts the number of events that have occurred in each respective central processing unit; and the control method comprises: recording, in an accumulated number recording by a computer system unit provided within the thread storage area, an accumulated occurrence number of events having occurred while the thread was being executed by the central processing unit, the accumulated occurrence number having been counted until the central processing unit terminated an execution of the thread wherein, the accumulated occurrence number is associated with each of the respective central processing units; recording, in a start-time number recording unit provided within the thread storage area a start time counter value of each respective central processing unit, the start time counter value having been counted until terminating execution of the thread; adding, to the accumulated occurrence number, a difference value obtained by subtracting the start time counter value, which has been recorded in said start-time number recording unit, from a termination time counter value of the occurrence number counter of the central processing unit determined at a termination time of the thread execution; storing the first difference value in the start-time number recording unit; adding the difference value to the accumulated occurrence number recorded in the accumulated number recording unit corresponding to the central processing unit; and calculating the number of events that have occurred during the execution of the thread by the central processing unit, and outputting the number of events that have occurred to a user program.