From owner-freebsd-java@FreeBSD.ORG Sun Jan 11 23:11:29 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF65016A4CE for ; Sun, 11 Jan 2004 23:11:29 -0800 (PST) Received: from mgr2.xmission.com (mgr2.xmission.com [198.60.22.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3893643D45 for ; Sun, 11 Jan 2004 23:11:28 -0800 (PST) (envelope-from glewis@eyesbeyond.com) Received: from [198.60.22.205] (helo=mgr5.xmission.com) by mgr2.xmission.com with esmtp (Exim 3.35 #1) id 1AfwEQ-0003XJ-02; Mon, 12 Jan 2004 00:11:26 -0700 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr5.xmission.com with esmtp (Exim 4.22) id 1AfwEP-0002dM-SY; Mon, 12 Jan 2004 00:11:26 -0700 Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) i0C7FlN2001239; Mon, 12 Jan 2004 00:15:48 -0700 (MST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.12.10/8.12.10/Submit) id i0C7FjoH001238; Mon, 12 Jan 2004 00:15:45 -0700 (MST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Mon, 12 Jan 2004 00:15:44 -0700 From: Greg Lewis To: Andrew Liles Message-ID: <20040112071544.GA1095@misty.eyesbeyond.com> References: <6.0.0.22.2.20040111224426.01e22c98@localhost> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <6.0.0.22.2.20040111224426.01e22c98@localhost> User-Agent: Mutt/1.4.1i Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on mgr5.xmission.com X-Spam-Level: X-Spam-Status: No, hits=-1.5 required=8.0 tests=BAYES_01 autolearn=no version=2.61 X-SA-Exim-Mail-From: glewis@eyesbeyond.com X-SA-Exim-Version: 3.1 (built Wed Aug 20 09:38:54 PDT 2003) X-SA-Exim-Scanned: Yes cc: freebsd-java@freebsd.org Subject: Re: Threads & SMP X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2004 07:11:29 -0000 On Sun, Jan 11, 2004 at 10:48:43PM +0000, Andrew Liles wrote: > I have successfully installed jvm1.4.2 + patchset 6 and have it running a > complex non-GUI application with no problem on a 2xCPU FreeBSD 4.9. > > What should I expect regarding applications with more than 1 Java thread on > a multiprocessor box? Should I expect to see the work spread across CPUs? On FreeBSD 5.x you should expect to see the load spread across both CPUs if you are using libkse of libthread as a threading library. On FreeBSD 4.x the only threading library is libc_r which won't spread the load across the CPUs. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org