Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Feb 2002 07:43:33 +1030
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        Mikhail Kruk <meshko@cs.brandeis.edu>
Cc:        Bill Huey <billh@gnuppy.monkey.org>, Guerry Semones <gsemones@treenleaf.com>, freebsd-java@FreeBSD.ORG
Subject:   Re: Need info for compiling JDK1.3.1 on FreeBSD with Native Threads
Message-ID:  <20020215074333.B66007@misty.eyesbeyond.com>
In-Reply-To: <Pine.LNX.4.44.0202141509090.13821-100000@daedalus.cs.brandeis.edu>; from meshko@cs.brandeis.edu on Thu, Feb 14, 2002 at 03:15:56PM -0500
References:  <20020214194925.GA1818@gnuppy.monkey.org> <Pine.LNX.4.44.0202141509090.13821-100000@daedalus.cs.brandeis.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 14, 2002 at 03:15:56PM -0500, Mikhail Kruk wrote:
> > Uh, you can't really call the normal IO functions, read()/write(), etc...
> > without it piping through the thread system in some way. If it's green threads,
> > then any function like that the coexistent program uses must go through
> > that layer of thread-managed wrapped functions and not the normal functions
> > in libc, etc... I'm not sure of the linking conventions off hand so I don't
> > know how to export those wrapped functions to a companion program.
> 
> I don't know much, sorry. I know that you can create JVM, it will run in 
> its own thread and it will be possible to attach your native C thread to 
> it. Here is the tutorial
> http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/jniref.html
> 
> and here is an example of how it is done:
> 
> #include <jni.h>
> #include <pthread.h>

*cough* Threading subsystem assumptions *cough*

-- 
Greg Lewis                            Email : glewis@eyesbeyond.com
Eyes Beyond                           Web   : http://www.eyesbeyond.com
Information Technology


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?20020215074333.B66007>