From owner-freebsd-java Fri Aug 24 12: 7: 6 2001 Delivered-To: freebsd-java@freebsd.org Received: from zircon.seattle.wa.us (sense-sea-CovadSub-0-228.oz.net [216.39.147.228]) by hub.freebsd.org (Postfix) with SMTP id 8AC3337B409 for ; Fri, 24 Aug 2001 12:07:02 -0700 (PDT) (envelope-from joe@zircon.seattle.wa.us) Received: (qmail 29568 invoked by uid 1001); 24 Aug 2001 19:09:46 -0000 From: Joe Kelsey MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15238.42617.926667.683393@zircon.zircon.seattle.wa.us> Date: Fri, 24 Aug 2001 12:09:45 -0700 To: freebsd-java@FreeBSD.ORG Subject: Re: Contributing... In-Reply-To: <20010825025921.A49770@misty.eyesbeyond.com> References: <3B8688AA.6956F1BD@ideasandassociates.com> <20010825025921.A49770@misty.eyesbeyond.com> X-Mailer: VM 6.92 under Emacs 20.7.1 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Greg Lewis writes: > On Fri, Aug 24, 2001 at 01:02:34PM -0400, Tim Liddelow wrote: > > For native threads, has there been any consideration on the linuxthreads > > port? > > Yes. The problem is that this adds another dependency to the JDK and > presents us with some distribution problems due to its LGPL nature. > The gain is that you can utilise multiple CPUs, but this is still at > the expense of threads which appear to be quite a bit more "heavyweight" > than the native FreeBSD pthreads. Aside from the supposed GPL contamination, linuxthreads are severely broken and are likely to always be severely broken until someone there implements real threads. I have direct experience trying to use both linuxthreads and FreeBSD pthreads and the linux version fails misreably under heavy thread load (say more than 100 threads), whereas FreeBSD threads just keeps on ticking... The basic problem is that the so-called "threads" in linux are just process forks in which forks share memory areas. This is a miserable way to implement threads, but it is also a trivial hack for someone who doesn't want to really do it right. It also works for very simple cases, but again, I have direct experience showing how miserably it fails under load. /Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message