Patent ID: 7137115
Filing Date: 2006-11-14
Classification: G06F

Abstract:
1. A method for controlling a plurality of threads that perform parallel processing, comprising: counting a number of running threads performing parallel processing using a running thread counter and a number of standby threads that are in a standby state using a standby thread counter for a predetermined time period; setting a maximum number of running threads in accordance with the number of running threads during the predetermined time period using a maximum running thread counter; comparing the number of standby threads with the maximum number of running threads; terminating a number of standby threads exceeding the maximum number of running threads when the number of standby threads is greater than the maximum number of running threads; incrementing the number of running threads using the running thread counter and decrementing the number of standby threads using the standby thread counter in response to a run request; and updating the maximum number of running threads set by the maximum running thread counter if the incremented number of running threads is greater than the maximum number of running threads.