From owner-freebsd-current@FreeBSD.ORG Fri Oct 27 22:34:21 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB10F16A403; Fri, 27 Oct 2006 22:34:21 +0000 (UTC) (envelope-from prvs=julian=44840db18@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EE6C43D46; Fri, 27 Oct 2006 22:34:21 +0000 (GMT) (envelope-from prvs=julian=44840db18@elischer.org) Received: from unknown (HELO [10.251.18.229]) ([10.251.18.229]) by a50.ironport.com with ESMTP; 27 Oct 2006 15:34:21 -0700 Message-ID: <4542896D.1050001@elischer.org> Date: Fri, 27 Oct 2006 15:34:21 -0700 From: Julian Elischer User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: Lev Serebryakov References: <917908193.20061027102647@serebryakov.spb.ru> <20061027103924.F79313@fledge.watson.org> <45426071.7020403@elischer.org> <602423478.20061028001449@serebryakov.spb.ru> In-Reply-To: <602423478.20061028001449@serebryakov.spb.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Robert Watson , current@FreeBSD.org Subject: Re: KSE, libpthread & libthr: almost newbie question X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Oct 2006 22:34:21 -0000 Lev Serebryakov wrote: > Hello Julian, > > Friday, October 27, 2006, 11:39:29 PM, you wrote: > > JE> As I mentioned in another email, most of the complexity does not come > JE> from the M:N code, but rather from the attempt to provide process > JE> fairness. > What is Process fairness? Situation, when process with 10 threads consumes same amount of CPU resource, as process with 1 thread (if they are equal in IO, sleeping, etc)? > > basically, if you and I both write programs to do a particular job on a timesharing system, and you use threads to do so and I use a sophisticated event handler/state machine, I shouldn't find that my program is running like a pig because yours has 1000 slots in the run queue and I only get run 1 in 1001 ticks.