From owner-freebsd-threads@FreeBSD.ORG Tue Nov 30 16:04:00 2010 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F83E1065672 for ; Tue, 30 Nov 2010 16:04:00 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 1AFE48FC12 for ; Tue, 30 Nov 2010 16:04:00 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1PNSgR-0004QT-HD for freebsd-threads@freebsd.org; Tue, 30 Nov 2010 08:03:59 -0800 Message-ID: <30340939.post@talk.nabble.com> Date: Tue, 30 Nov 2010 08:03:59 -0800 (PST) From: p4ddy To: freebsd-threads@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: prdpsbhat@gmail.com References: <30337545.post@talk.nabble.com> X-Mailman-Approved-At: Tue, 30 Nov 2010 17:07:18 +0000 Subject: Re: Creating thread dynamically in a thread pool X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2010 16:04:00 -0000 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.