From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 19 20:40:57 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8C78216A401 for ; Mon, 19 Mar 2007 20:40:57 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from shell.asta.uni-rostock.de (gateway.stura.uni-rostock.de [139.30.252.67]) by mx1.freebsd.org (Postfix) with ESMTP id 4ED5413C46A for ; Mon, 19 Mar 2007 20:40:56 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (unknown [192.168.16.3]) by shell.asta.uni-rostock.de (Postfix) with ESMTP id 306561895 for ; Mon, 19 Mar 2007 20:40:54 +0000 (GMT) Received: by britannica.bec.de (Postfix, from userid 1000) id A874F4C87; Mon, 19 Mar 2007 21:40:48 +0100 (CET) Date: Mon, 19 Mar 2007 21:40:48 +0100 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20070319204048.GB24514@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20070319175908.35326.qmail@web32911.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) Subject: Re: Pthread spin locks X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2007 20:40:57 -0000 On Mon, Mar 19, 2007 at 02:04:58PM -0400, Daniel Eischen wrote: > No, especially if the threads hold other locks. > I have no idea why POSIX added spinlocks. I don't > see why anyone would want to use them. Given that it is part of the realtime extensions, it makes sense. On those systems you generally also have policies for scheduler control like CPU affinity, which can make the starvation impossible. Joerg