Patent ID: 9354931
Filing Date: 2016-05-31
CPC Classification: G06F

Claim Text:
1. A method for managing a size of a thread pool dynamically, comprising the steps of: (a) a processor increasing a maximum thread size if the number of threads included in the thread pool is within a predetermined amount of the maximum thread size; and (b) the processor comparing a size of a task queue before the increase of the maximum thread size with that after the increase thereof by referring to information on the size of the task queue, and increasing the maximum thread size again if the size of the task queue after the increase thereof is larger than, or equal to, that before the increase thereof; (c) stopping increasing the maximum thread size if the size of the task queue is decreased after the step of (b) or the number of threads included in the thread pool fails to be within a predetermined amount from the maximum thread size calculated at the step of (b) even though the maximum thread size has been increased again at the step of (b), wherein, at the step of (c), if the size of the task queue is decreased or the number of threads included in the thread pool fails to be within a predetermined amount from the maximum thread size calculated at the step of (b) after a prefixed time from the completion of the step of (b) even though the maximum thread size has been increased again at the step of (b), the increase of the maximum thread size is stopped.