Re: Fast Userspace Mutexes (futex) vs. msem_*

From: Davide Libenzi (davidel@xmailserver.org)
Date: Fri Mar 08 2002 - 01:34:02 EST


On Fri, 8 Mar 2002, Doug Siebert wrote:

> The direction that the futex implementation is going is looking a lot like
> how they are implemented on HP-UX (as well as Tru64 and AIX) I am curious
> though why the case of "what happens if the process holding the lock dies"
> is considered unimportant by some people. It wouldn't be all that much
> more work to "do it right" (IMHO) and handle this case. AFAIK, on HP-UX
> the implementation kept a "locker id" and a linked list of waiters' lock
> ids (to allow first come first served as well as handling the case of a
> lock holder dying) There was an underlying system call that was made when
> the userspace part in libc found the lock already held and waiting for the
> lock was desired.

Rusty, you should really make a futex-FAQ :-)

- Davide

-
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/



This archive was generated by hypermail 2b29 : Fri Mar 15 2002 - 22:00:07 EST