Creating thread dynamically in a thread pool

Ivan Voras ivoras at
Tue Nov 30 13:26:12 UTC 2010

On 11/30/10 08:39, p4ddy wrote:
> Hi all,
> Here is the story.
> I m handling threads for some server. maxThreadPoolSize is given as 1000 but
> obviously creating 1000 threads not only takes time but also huge resources.

Obviously I don't know what your particular constraints are, but 
creating 1000 threads takes a few milliseconds and produces a process 
with resident size of 25 MB and a VM size of 135 MB. (on amd64)

It could well be that those are huge resources for you, I don't know :)

More information about the freebsd-threads mailing list