From owner-freebsd-java Tue Sep 12 14:53:10 2000 Delivered-To: freebsd-java@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 8D55337B43C for ; Tue, 12 Sep 2000 14:53:07 -0700 (PDT) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id PAA22041; Tue, 12 Sep 2000 15:53:05 -0600 (MDT) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id PAA25042; Tue, 12 Sep 2000 15:53:00 -0600 (MDT) (envelope-from nate) Date: Tue, 12 Sep 2000 15:53:00 -0600 (MDT) Message-Id: <200009122153.PAA25042@nomad.yogotech.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Kees Jan Koster Cc: FreeBSD Java Mailinglist Subject: Re: Threads questions In-Reply-To: <39BEA209.83D937C1@tccn.cs.kun.nl> References: <39BEA209.83D937C1@tccn.cs.kun.nl> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Question about libraries: I notice that java is linked against libc, > should that not be libc_r? Definitely not. > Isn't libc_r the reentrant version of libc? Yes, but we don't use the re-entrant version of the library, since we provide our own 'wrappers' for the library functions inside our multi-threaded libraries. > 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. ucontext.h isn't in FreeBSD either. Have you looked at Simon Gerraty's (sp?) NetBSD port of JDK1.1. That would be a good place to start. > 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? If the OS supports kernel threads, then these provide the get/setcontext functions for this, but since none of the *BSD's support them, we don't have the library functions. > Where can I find some documentation on it? Who knows a lot about > threading and the JDK implementation? Look at the patches supplied for FreeBSD. It's all in there. :) Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message