From owner-freebsd-java@FreeBSD.ORG Thu Aug 28 03:17:19 2003 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 B928D16A4BF for ; Thu, 28 Aug 2003 03:17:19 -0700 (PDT) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55C6343F93 for ; Thu, 28 Aug 2003 03:17:18 -0700 (PDT) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.22) id 19sJq6-000MTn-FD; Thu, 28 Aug 2003 12:17:14 +0200 Date: Thu, 28 Aug 2003 12:17:14 +0200 From: Sheldon Hearn To: "Branko F. Grac(nar" Message-ID: <20030828101714.GF83970@starjuice.net> Mail-Followup-To: "Branko F. Grac(nar" , freebsd-java@freebsd.org References: <20030828090512.GB83970@starjuice.net> <20030828090852.GC83970@starjuice.net> <20030828094833.GA82970@chihiro.leafy.idv.tw> <3F4DD228.20202@noviforum.si> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F4DD228.20202@noviforum.si> User-Agent: Mutt/1.5.4i Sender: Sheldon Hearn cc: freebsd-java@freebsd.org Subject: Re: FreeBSD vs Windows 2000 "Advanced" Server 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: Thu, 28 Aug 2003 10:17:19 -0000 On (2003/08/28 11:58), "Branko F. Grac(nar" wrote: > $ time java TestThreads 50000 0 > TestThreads: successfully fired 50000 threads > TestThreads: waited 0 milliseconds for all threads to complete > > real 0m20.173s > user 0m16.739s > sys 0m1.909s > > ... which 2478,56 threads/second. These are not meaningful numbers. The program wasn't designed to test thread instantiation performance, and is pretty much guaranteed to do a shit job of it. :-) You need enough sleep time to ensure that all the threads are active at once. Ciao, Sheldon.