Ludovic Court�s <[EMAIL PROTECTED]> 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.  



_______________________________________________
Help-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-hurd

Reply via email to