Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261848AbVBCVQG (ORCPT ); Thu, 3 Feb 2005 16:16:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263219AbVBCVQG (ORCPT ); Thu, 3 Feb 2005 16:16:06 -0500 Received: from out006pub.verizon.net ([206.46.170.106]:40702 "EHLO out006.verizon.net") by vger.kernel.org with ESMTP id S261848AbVBCVPz (ORCPT ); Thu, 3 Feb 2005 16:15:55 -0500 Message-Id: <200502032115.j13LFWFY009703@localhost.localdomain> To: Ingo Molnar cc: Con Kolivas , "Bill Huey (hui)" , "Jack O'Quin" , Nick Piggin , linux , rlrevell@joe-job.com, CK Kernel , utz , Andrew Morton , alexn@dsv.su.se, Rui Nuno Capela , Chris Wright , Arjan van de Ven Subject: Re: [patch, 2.6.11-rc2] sched: RLIMIT_RT_CPU_RATIO feature In-reply-to: Your message of "Thu, 03 Feb 2005 21:47:11 +0100." <20050203204711.GB25018@elte.hu> Date: Thu, 03 Feb 2005 16:15:32 -0500 From: Paul Davis X-Authentication-Info: Submitted using SMTP AUTH at out006.verizon.net from [151.197.43.196] at Thu, 3 Feb 2005 15:15:51 -0600 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1132 Lines: 27 >> yield_to(tid) should not be too hard to implement. Ingo? What do you >> think? > >i dont really like it - it's really the wrong interface to use. Futexes >are a much better locking/signalling interface. yield_to() would not be i agree in principle, and i was suprised to see Con express this thought so readily. however, i don't agree that futexes are conceptually superior. they don't express the intended operation nearly as accurately as yield_to(tid) would. the operation is "i have nothing else to do, and i want to run next". a futex says "this particular condition is satisfied, which might wake one or more tasks". its still necessary for the caller to go to sleep explicitly, its still necessary for the tasks involved to know about the futexes, which actually are really irrelevant - there are no conditions to satisfy, just a series of tasks we want to run. --p - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/