Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Sep 2000 15:53:00 -0600 (MDT)
From:      Nate Williams <nate@yogotech.com>
To:        Kees Jan Koster <dutchman@tccn.cs.kun.nl>
Cc:        FreeBSD Java Mailinglist <freebsd-java@FreeBSD.ORG>
Subject:   Re: Threads questions
Message-ID:  <200009122153.PAA25042@nomad.yogotech.com>
In-Reply-To: <39BEA209.83D937C1@tccn.cs.kun.nl>
References:  <39BEA209.83D937C1@tccn.cs.kun.nl>

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




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