Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 10 Mar 2001 12:00:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 10 Mar 2001 12:00:27 -0500 Received: from ns.suse.de ([213.95.15.193]:61714 "HELO Cantor.suse.de") by vger.kernel.org with SMTP id ; Sat, 10 Mar 2001 12:00:17 -0500 To: Davide Libenzi Cc: linux-kernel@vger.kernel.org Subject: Re: sys_sched_yield fast path In-Reply-To: From: Andi Kleen Date: 10 Mar 2001 17:59:33 +0100 In-Reply-To: Davide Libenzi's message of "10 Mar 2001 11:23:39 +0100" Message-ID: Lines: 10 User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Davide Libenzi writes: > Probably the rate at which is called sys_sched_yield() is not so high to let > the performance improvement to be measurable. LinuxThreads mutexes call sched_yield() when a lock is locked, so when you have a multithreaded program with some lock contention it'll be called a lot. -Andi - 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/