From owner-freebsd-java Sun May 26 8:58:49 2002 Delivered-To: freebsd-java@freebsd.org Received: from mgr1.xmission.com (mgr1.xmission.com [198.60.22.201]) by hub.freebsd.org (Postfix) with ESMTP id 4F00B37B405 for ; Sun, 26 May 2002 08:58:45 -0700 (PDT) Received: from mail by mgr1.xmission.com with spam-scanned (Exim 3.35 #1) id 17C0Pp-0006Cj-00; Sun, 26 May 2002 09:58:41 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr1.xmission.com with esmtp (Exim 3.35 #1) id 17C0Po-0006CY-00; Sun, 26 May 2002 09:58:40 -0600 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id g4QFwW999672; Mon, 27 May 2002 01:28:32 +0930 (CST) (envelope-from glewis) Date: Mon, 27 May 2002 01:28:31 +0930 From: Greg Lewis To: "Robert F. Ross" Cc: freebsd-java@FreeBSD.ORG Subject: Re: JDK 1.3.1, FreeBSD 4.5, JNI and select() Message-ID: <20020527012831.A99647@misty.eyesbeyond.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rross@recourse.com on Fri, May 24, 2002 at 12:58:56PM -0700 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 Fri, May 24, 2002 at 12:58:56PM -0700, Robert F. Ross wrote: > As far as I can tell, the JDK1.3.1 as compiled from /usr/ports in > FreeBSD4.5 is compiled with -pthread. Yes and no. A particular threading subsystem (native threads) is compiled with -pthread. The default green threads are not. > An ldd on the final java binary > shows that it's using libc.so.4, not libc_r.so.4. I've been experiencing > problems with select() calls in JNI routines always waiting for the full > timeout when checking readfds (write seems happy) instead of returning as > soon as the data is available. poll() appears to have the same > behavior. Has anyone seen this issue and know how to fix it? 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). -- 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