Pthread spin locks

Joerg Sonnenberger joerg at britannica.bec.de
Mon Mar 19 20:40:57 UTC 2007


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


More information about the freebsd-hackers mailing list