Date: Thu, 14 Feb 2002 12:22:37 -0800 From: Bill Huey <billh@gnuppy.monkey.org> To: Mikhail Kruk <meshko@cs.brandeis.edu> Cc: 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: <20020214202237.GA2438@gnuppy.monkey.org> In-Reply-To: <Pine.LNX.4.44.0202141509090.13821-100000@daedalus.cs.brandeis.edu> 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: > 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: ... > thr_id=pthread_create(&tid, NULL, native_thread, NULL); > > // If you don't have join, sleep instead > //sleep(1000); > pthread_join(tid, NULL); > (*jvm)->DestroyJavaVM(jvm); > exit(0); > } Oh my, and folks expect something like that to work ? Is it considered a bug if it doesn't ? I don't know what's happening in the other program that's trying to invoke the JVM, so I can't really say at this point. It could be a ld.so problem, threading and host of other things. bill 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?20020214202237.GA2438>