From owner-freebsd-java Fri May 31 7:27: 6 2002 Delivered-To: freebsd-java@freebsd.org Received: from whisper.stupidog.org (adsl-63-193-245-15.dsl.snfc21.pacbell.net [63.193.245.15]) by hub.freebsd.org (Postfix) with ESMTP id 9E29F37B406 for ; Fri, 31 May 2002 07:27:03 -0700 (PDT) Received: from [10.0.1.11] (golux.stupidog.org [10.0.1.11]) by whisper.stupidog.org (8.11.1/8.11.1) with ESMTP id g4VEQpF74546; Fri, 31 May 2002 07:26:55 -0700 (PDT) (envelope-from champlin@stupidog.org) Date: Fri, 31 May 2002 07:27:43 -0700 From: Virgil Champlin To: Ari Suutari Cc: Greg Lewis , freebsd-java@FreeBSD.ORG Subject: Re: JDK 1.3.1, FreeBSD 4.5, JNI and select() Message-ID: <7512757.1022830063@[10.0.1.11]> In-Reply-To: <200205291053.32039.ari.suutari@syncrontech.com> References: <200205291053.32039.ari.suutari@syncrontech.com> X-Mailer: Mulberry/2.2.0 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 Also, using select() allows a trivial port to Mac OS X. Well that and using a USB-to-serial frob that presents a POSIX terminal API. Keyspan works. -virgil --Ari Suutari said: > Hi, > > On Tuesday 28 May 2002 17:43, Greg Lewis wrote: >> On Mon, May 27, 2002 at 09:26:38AM +0300, Ari Suutari wrote: >> > On Sunday 26 May 2002 18:58, Greg Lewis wrote: >> > 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. > > Great! I'll test this when I update CommApi package > next time. > > Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message