Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2002 00:13:40 +0930
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        Ari Suutari <ari.suutari@syncrontech.com>
Cc:        freebsd-java@FreeBSD.ORG
Subject:   Re: JDK 1.3.1, FreeBSD 4.5, JNI and select()
Message-ID:  <20020529001340.B47941@misty.eyesbeyond.com>
In-Reply-To: <200205270926.39005.ari.suutari@syncrontech.com>; from ari.suutari@syncrontech.com on Mon, May 27, 2002 at 09:26:38AM %2B0300
References:  <Pine.GSO.4.21.0205241256290.1002-100000@recourse.com> <20020527012831.A99647@misty.eyesbeyond.com> <200205270926.39005.ari.suutari@syncrontech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020529001340.B47941>