From owner-freebsd-current@FreeBSD.ORG Sat Oct 28 14:27:19 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D61716A416; Sat, 28 Oct 2006 14:27:19 +0000 (UTC) (envelope-from eischen@vigrid.com) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD50C43D6A; Sat, 28 Oct 2006 14:27:14 +0000 (GMT) (envelope-from eischen@vigrid.com) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.7/8.13.7/NETPLEX) with ESMTP id k9SER31Z008780; Sat, 28 Oct 2006 10:27:03 -0400 (EDT) Date: Sat, 28 Oct 2006 10:27:03 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Robert Watson In-Reply-To: <20061028104741.Q69980@fledge.watson.org> Message-ID: References: <917908193.20061027102647@serebryakov.spb.ru> <20061027103924.F79313@fledge.watson.org> <45426071.7020403@elischer.org> <602423478.20061028001449@serebryakov.spb.ru> <4542896D.1050001@elischer.org> <20061027231642.GJ30707@riyal.ugcs.caltech.edu> <45429703.8070305@elischer.org> <20061028104741.Q69980@fledge.watson.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-2.0.2 (mail.ntplx.net [204.213.176.10]); Sat, 28 Oct 2006 10:27:03 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: Paul Allen , Lev Serebryakov , Julian Elischer , current@freebsd.org Subject: Re: KSE, libpthread & libthr: almost newbie question X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Oct 2006 14:27:19 -0000 On Sat, 28 Oct 2006, Robert Watson wrote: > > On Fri, 27 Oct 2006, Julian Elischer wrote: > >> there is class of problems (e.g. some java programs) that have THOUSANDS of >> threads, each representing an active aspect of some object. How do you put >> an rlimit on that without either 1/ stopping the program from working or 2/ >> allowing thousands of threads to exist but not screwing other users. > > Does the JVM actually expose thousands of threads to the OS, or does it > actually do its own M:N threading internally based on its execution model? My > impression is the latter, exposing threads to the OS only when it needs them > to consume kernel or CPU resources. I think it exposes all threads to the OS. I think "green threads" was its own threading. You should ask -java, though. -- DE