From owner-freebsd-threads@FreeBSD.ORG Sat May 3 05:55:57 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51A3337B401 for ; Sat, 3 May 2003 05:55:57 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5A9C43F85 for ; Sat, 3 May 2003 05:55:56 -0700 (PDT) (envelope-from eischen@pcnet1.pcnet.com) Received: from pcnet1.pcnet.com (localhost [127.0.0.1]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h43CtsBg006002; Sat, 3 May 2003 08:55:54 -0400 (EDT) Received: from localhost (eischen@localhost)h43Cts0C005998; Sat, 3 May 2003 08:55:54 -0400 (EDT) Date: Sat, 3 May 2003 08:55:53 -0400 (EDT) From: Daniel Eischen To: Scott Long In-Reply-To: <3EB368D0.7050208@btc.adaptec.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org cc: Tom Samplonius Subject: Re: Java and native threads using libpthread X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2003 12:55:57 -0000 On Sat, 3 May 2003, Scott Long wrote: > Tom Samplonius wrote: > > On Fri, 2 May 2003, Daniel Eischen wrote: > > > > > >>I know you guys have made a lot of progress with native threading > >>using libc_r, but I'd like to see you try out libpthread (libkse) > >>at some point. > > > > > > What kind of implmentation is libpthread? M:N or 1:1? freebsd-current > > has had several lengthy discussion about various competing available, > > proposed, or planned threading implemenations. I couldn't determine from > > the archives what the conclusion was. I hoping for a summary of what > > libpthread does now. > > > > ... > > > > libpthread was recently renamed back to libkse to avoid confusion until > it is ready for prime-time. It is M:N. libthr is 1:1. Both are not > ready for prime-time, especially with SMP, but it still might be > interesting to test them on UP systems. I tried jdk13 with libthr last > month and had mixed results. SwingSet2 ran pretty well, but the > mozilla plugin didn't. I haven't tried libkse yet since it deadlocks > quite quickly in rtld. I posted a patch to libpthread a couple of days ago that helps work around this problem; you might want to try that. I believe the Java implementation relies on libc_r internals, which aren't the same in libpthread (and perhaps libthr too). I wouldn't expect copying libthr or libpthread to libc_r to work for the JVM because of this. Perhaps this isn't true anymore, though... -- Dan Eischen