Date: Mon, 19 Mar 2007 14:04:58 -0400 (EDT) From: Daniel Eischen <deischen@freebsd.org> To: Peter Holmes <peter_holmes2003@yahoo.com> Cc: fbsd hackers <freebsd-hackers@freebsd.org> Subject: Re: Pthread spin locks Message-ID: <Pine.GSO.4.64.0703191403440.21146@sea.ntplx.net> In-Reply-To: <20070319175908.35326.qmail@web32911.mail.mud.yahoo.com> References: <20070319175908.35326.qmail@web32911.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 19 Mar 2007, Peter Holmes wrote: > I have a related question - it would be great if someone could help me. Let's > say there are multiple system scope pthreads running on an SMP system. Is > there a chance that if a pthread holding a spinlock is scheduled out (due to a > scheduling decision etc.) then other pthreads will be starved. Is there > anything the system provides to guard against pthread starvation. 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. -- DE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.0703191403440.21146>