Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Sep 2000 07:18:52 +0930
From:      Greg Lewis <glewis@trc.adelaide.edu.au>
To:        Kees Jan Koster <dutchman@tccn.cs.kun.nl>
Cc:        FreeBSD Java Mailinglist <freebsd-java@FreeBSD.ORG>
Subject:   Re: Threads questions
Message-ID:  <20000913071852.A54816@ares.trc.adelaide.edu.au>
In-Reply-To: <39BEA209.83D937C1@tccn.cs.kun.nl>; from dutchman@tccn.cs.kun.nl on Tue, Sep 12, 2000 at 11:37:13PM %2B0200
References:  <39BEA209.83D937C1@tccn.cs.kun.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <ucontext.h>
#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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000913071852.A54816>