From owner-freebsd-java Thu Feb 14 13:13:58 2002 Delivered-To: freebsd-java@freebsd.org Received: from mgr2.xmission.com (mgr2.xmission.com [198.60.22.202]) by hub.freebsd.org (Postfix) with ESMTP id 836CC37B417 for ; Thu, 14 Feb 2002 13:13:40 -0800 (PST) Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr2.xmission.com with esmtp (Exim 3.22 #1) id 16bTCE-0002Q4-00; Thu, 14 Feb 2002 14:13:38 -0700 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id g1ELDXp66052; Fri, 15 Feb 2002 07:43:33 +1030 (CST) (envelope-from glewis) Date: Fri, 15 Feb 2002 07:43:33 +1030 From: Greg Lewis To: Mikhail Kruk Cc: Bill Huey , Guerry Semones , 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> References: <20020214194925.GA1818@gnuppy.monkey.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from meshko@cs.brandeis.edu on Thu, Feb 14, 2002 at 03:15:56PM -0500 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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 > #include *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