Date: Tue, 30 Nov 2010 08:03:59 -0800 (PST) From: p4ddy <prdpsbhat@gmail.com> To: freebsd-threads@freebsd.org Subject: Re: Creating thread dynamically in a thread pool Message-ID: <30340939.post@talk.nabble.com> In-Reply-To: <id2t4r$f1q$1@dough.gmane.org> References: <30337545.post@talk.nabble.com> <id2t4r$f1q$1@dough.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Yeah, for 1000 threads that is ok. But what is the case if the thread size is 10000. that is an example i mentioned but the problem here is to create threads dynamically based on certain criteria. :) Ivan Voras-7 wrote: > > 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 :) > > > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" > > -- View this message in context: http://old.nabble.com/Creating-thread-dynamically-in-a-thread-pool-tp30337545p30340939.html Sent from the freebsd-threads mailing list archive at Nabble.com.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?30340939.post>