From owner-freebsd-java Tue Jul 10 16:16:21 2001 Delivered-To: freebsd-java@freebsd.org Received: from gnuppy.monkey.org (cx739861-a.dt1.sdca.home.com [24.5.164.61]) by hub.freebsd.org (Postfix) with ESMTP id C800B37B407 for ; Tue, 10 Jul 2001 16:16:18 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.22 #1 (Debian)) id 15K6jL-0001g1-00; Tue, 10 Jul 2001 16:15:47 -0700 Date: Tue, 10 Jul 2001 16:15:47 -0700 To: Brian Behlendorf Cc: Nate Williams , freebsd-java@FreeBSD.ORG Subject: Re: Threads in Java on a variety of platforms Message-ID: <20010710161547.B2843@gnuppy> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.18i From: Bill Huey 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 10, 2001 at 11:53:37AM -0700, Brian Behlendorf wrote: > I'm wondering whether it's worth the FreeBSD porter's time to advocate > that the core Java JVM could adopt the threading API in Apache's APR > library (see http://apr.apache.org/) It acts as an abstraction layer over > native thread implementations, as well as pthreads, IIRC. I'm not a > developer on that project so I don't have the technical details. It may > provide portability for a number of other functions as well. And the > licensing is standard Apache license, so it can be integrated into the > non-open-source JVM without a problem. > > Brian The JVM itself has a pretty well testing thread abstraction system and porting to another threading system would be more work than neccessary. All the pthreads stuff is already in the source tree already and it's just a matter of #ifdefing the right blocks into place. ;-) The JVM also has some pretty exotic needs, synchronization primitives, etc... and it's unlikely that a generic portable threading system would supply what the JVM needs without severe hacking/mangling. I'll look at the link though. ;-) bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message