help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reference counting in netfs


From: Thomas Bushnell, BSG
Subject: Re: Reference counting in netfs
Date: 07 Jan 2003 10:03:47 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Ludovic Courtès <ludovic.courtes@utbm.fr> writes:

> On Mon, Jan 06, 2003 at 08:47:23PM -0800, Thomas Bushnell, BSG wrote:
> > mutexes and spin locks behave identically.  The only significant
> > difference is the respective performance costs of contention and
> > blocking.
> 
> Mutexes maintain a queue of waiting threads.  I thought the goal of this
> queue was to ensure that threads are served in their order of arrival?

Mutexes do not make any guarantees about which thread gets the lock
next.  The current implementation might happen to work that way, but
it is a bug to depend on such behavior.  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]