From owner-freebsd-java Tue Jan 26 21:14:03 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA27555 for freebsd-java-outgoing; Tue, 26 Jan 1999 21:14:03 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA27549 for ; Tue, 26 Jan 1999 21:14:02 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id WAA29378; Tue, 26 Jan 1999 22:13:54 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id WAA18478; Tue, 26 Jan 1999 22:13:54 -0700 Date: Tue, 26 Jan 1999 22:13:54 -0700 Message-Id: <199901270513.WAA18478@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: SHUDO Kazuyuki Cc: Tom , java@FreeBSD.ORG Subject: Re: TowerJ for FreeBSD In-Reply-To: <199901270132.KAA26867@cafe.muraoka.info.waseda.ac.jp> References: <199901270132.KAA26867@cafe.muraoka.info.waseda.ac.jp> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > > > Yep, this is where FreeBSD (and less so Linux) got the crap kicked out > > > > of it. Linux is a bit better than ours for a couple of reaasons. > > > > > > 2) Our 'Green Threads' implementation uses locking that is not as > > > > effecient as the Linux version. In particular, Linux kernel's have > > > > poll built in, and we emulate it (badly, but effectively) with some > > > > hacks to use select. > > As above, Nate said that Linux kernels have poll built > in so why Linux 'Green Threads' implementation is a bit > better than FreeBSD one. This is incorrect. because, > > > > JDK 1.1.7 for Linux/glibc use poll() and not > > > select(). But glibc 2.0.7 which is used on most linux > > > box replaces calls to poll with calls to select since > > > Linux kernel prior to 2.1.23 doesn't have poll(). > > JDK on most Linux boxes don't make use of poll(). A > system call poll() isn't used by JDK with glibc 2.0.X > even if the Linux kernel has it. Poll() is being > emulated also on Linux boxes. I suspect the boxes that use select aren't the ones being used in the benchmark tests. According to what I've heard, they got much faster performance when they did some poll tests (vs. select). And, as I originally stated, that is just *one* reason it's faster. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message