Thread Pool vs Thread Spawning

A “pool” contains a list of available “threads” ready to be used whereas “spawning” refers to actually creating a new thread.

The usefulness of “Thread Pooling” lies in “lower time-to-use”: creation time overhead is avoided.

In terms of “which one is better”: it depends. If the creation-time overhead is a problem use Thread-pooling. This is a common problem in environments where lots of “short-lived tasks” need to be performed.


As pointed out by other folks, there is a “management overhead” for Thread-Pooling: this is minimal if properly implemented. E.g. limiting the number of threads in the pool is trivial.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)