From owner-freebsd-java Tue May 28 7:44: 0 2002 Delivered-To: freebsd-java@freebsd.org Received: from mgr3.xmission.com (mgr3.xmission.com [198.60.22.203]) by hub.freebsd.org (Postfix) with ESMTP id 8158737B409 for ; Tue, 28 May 2002 07:43:56 -0700 (PDT) Received: from mail by mgr3.xmission.com with spam-scanned (Exim 3.35 #1) id 17CiCa-0001Ac-00; Tue, 28 May 2002 08:43:56 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr3.xmission.com with esmtp (Exim 3.35 #1) id 17CiCZ-0001AR-00; Tue, 28 May 2002 08:43:55 -0600 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id g4SEhjx47986; Wed, 29 May 2002 00:13:45 +0930 (CST) (envelope-from glewis) Date: Wed, 29 May 2002 00:13:40 +0930 From: Greg Lewis To: Ari Suutari Cc: freebsd-java@FreeBSD.ORG Subject: Re: JDK 1.3.1, FreeBSD 4.5, JNI and select() Message-ID: <20020529001340.B47941@misty.eyesbeyond.com> References: <20020527012831.A99647@misty.eyesbeyond.com> <200205270926.39005.ari.suutari@syncrontech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200205270926.39005.ari.suutari@syncrontech.com>; from ari.suutari@syncrontech.com on Mon, May 27, 2002 at 09:26:38AM +0300 X-Spam-Status: No, hits=-4.4 required=8.0 tests=IN_REP_TO version=2.20 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 Mon, May 27, 2002 at 09:26:38AM +0300, Ari Suutari wrote: > On Sunday 26 May 2002 18:58, Greg Lewis wrote: > > Not having tried to do this I haven't seen this issue. The Java Comm API > > uses this select() in JNI code and seems to work ok, however I'm not > > sure of the details. It might be worth looking at the code for it > > (its in the PR system to be committed as a port if it hasn't been > > already). > > Java Comm API used select in jdk 1.1.8 days, but I have > changed it to use poll because of similar problems. If I remember > correctly, there are wrappers in green_threads package for > various syscalls. There is a wrapper for "poll", but there is > no wrapper for "select" which breaks threading when it > is called by JNI code. You should find that this isn't a problem for 1.3.1 (it was for 1.2.2). That is, you should be able to use select() without any problems. -- 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