From owner-freebsd-java Tue Jul 23 14: 1:41 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D7CA37B406 for ; Tue, 23 Jul 2002 14:01:38 -0700 (PDT) Received: from mgr3.xmission.com (mgr3.xmission.com [198.60.22.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EF2343E70 for ; Tue, 23 Jul 2002 14:01:34 -0700 (PDT) (envelope-from glewis@misty.eyesbeyond.com) Received: from mail by mgr3.xmission.com with spam-scanned (Exim 3.35 #1) id 17X6mj-0007Bw-00; Tue, 23 Jul 2002 15:01:34 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr3.xmission.com with esmtp (Exim 3.35 #1) id 17X6mi-0007Ag-00; Tue, 23 Jul 2002 15:01:33 -0600 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id g6NL1Nc72418; Wed, 24 Jul 2002 06:31:23 +0930 (CST) (envelope-from glewis) Date: Wed, 24 Jul 2002 06:31:23 +0930 From: Greg Lewis To: Erik Mattsson Cc: java@FreeBSD.ORG Subject: Re: Java, FreeBSD and JNI Message-ID: <20020724063123.B72376@misty.eyesbeyond.com> References: <008901c23153$37e3fc90$0800a8c0@imbridge.se> <20020723082344.A68615@misty.eyesbeyond.com> <002501c2321a$48682b00$0800a8c0@imbridge.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <002501c2321a$48682b00$0800a8c0@imbridge.se>; from erik.mattsson@imbridge.com on Tue, Jul 23, 2002 at 09:26:37AM +0200 X-Spam-Status: No, hits=-3.4 required=8.0 tests=IN_REP_TO version=2.31 X-Spam-Level: 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 Tue, Jul 23, 2002 at 09:26:37AM +0200, Erik Mattsson wrote: > > On Mon, Jul 22, 2002 at 09:41:37AM +0200, Erik Mattsson wrote: > > > Im developing servlets that uses JNI for some large image handling, converting > > > to other formats etc. Now I wonder if there are any problems that I should know > > > about running JNI applications under the freebsd-jdk1.3.1 port? > > > > Don't assume a particular threading subsystem. For example, if your JNI > > code uses pthreads, don't assume it will just play nice with the default > > "green threads". > > What do you mean, do you mean that using threads in the JNI code > is not advisable? I mean that the using FreeBSD pthreads won't "just work" with "green threads". It will with "native threads". > What is the difference between the native and green threads ? Native threads use the systems own native threading subsystem (pthreads on FreeBSD) while green threads are threads which are implemented internally to the JDK using context switching. Does your JNI stuff actually use pthreads? If not then this is all moot. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message