Date: Tue, 30 Nov 2010 14:11:03 +0100 From: Ivan Voras <ivoras@freebsd.org> To: freebsd-threads@freebsd.org Subject: Re: Creating thread dynamically in a thread pool Message-ID: <id2t4r$f1q$1@dough.gmane.org> In-Reply-To: <30337545.post@talk.nabble.com> References: <30337545.post@talk.nabble.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 :)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?id2t4r$f1q$1>