From owner-freebsd-java Tue Sep 12 14:49: 5 2000 Delivered-To: freebsd-java@freebsd.org Received: from ares.trc.adelaide.edu.au (ares.trc.adelaide.edu.au [129.127.246.5]) by hub.freebsd.org (Postfix) with ESMTP id 44AB737B422 for ; Tue, 12 Sep 2000 14:49:01 -0700 (PDT) Received: (from glewis@localhost) by ares.trc.adelaide.edu.au (8.9.3/8.9.3) id HAA54913; Wed, 13 Sep 2000 07:18:52 +0930 (CST) (envelope-from glewis) Date: Wed, 13 Sep 2000 07:18:52 +0930 From: Greg Lewis To: Kees Jan Koster Cc: FreeBSD Java Mailinglist Subject: Re: Threads questions Message-ID: <20000913071852.A54816@ares.trc.adelaide.edu.au> References: <39BEA209.83D937C1@tccn.cs.kun.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <39BEA209.83D937C1@tccn.cs.kun.nl>; from dutchman@tccn.cs.kun.nl on Tue, Sep 12, 2000 at 11:37:13PM +0200 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Sep 12, 2000 at 11:37:13PM +0200, Kees Jan Koster wrote: > Question about libraries: I notice that java is linked against libc, > should that not be libc_r? Isn't libc_r the reentrant version of libc? It shouldn't be libc_r. The JDK handles all the threading issues (for green threads) itself. > I'm not too up to date with the whole threading business in C, and of > course that's precisely where I'm stuck with on NetBSD. It seems > that ucontext.h is missing in NetBSD. As it is in FreeBSD. Look in src/freebsd/hpi/green_threads/include/context.h and notice the lines: #ifndef __FreeBSD__ #include #endif > I thought that I could install GNU PTh to get a userland thread > library to use, but it does not include ucontext.h. What's ucontext.h > for? Where can I find some documentation on it? Who knows a lot about > threading and the JDK implementation? Is GNU PTh GPL or LGPL? Thats the first question you need to answer :). However, I think its the wrong solution to the threading issues, assuming you mean green threads anyway. The only concern with NetBSD and green threads will probably be about which thingy it puts the CPU control word in with all the jumpbuf business. You'll note that it changed between FreeBSD 3.x and 4.x. You need to discover which it is for NetBSD (or if its something completely different). -- Greg Lewis glewis@trc.adelaide.edu.au Computing Officer +61 8 8303 5083 Teletraffic Research Centre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message