Re: [GIT PULL] adaptive spinning mutexes

Folkert van Heusden
2009-01-16T14:07:34Z

> So I don't dispute at all that "mutex with spinning" performs better than
> a mutex, but I _do_ claim that it has some potentially huge downsides
> compared to a real spinlock. It may perform as well as a spinlock in the
> nice common case, but then when you hit the non-common case you see the
> difference between well-written code and badly written code.

Make it mount-point dependant. Then your mail-spool can use the spinlock
version and e.g. the /usr filesystem uses regular mutexes. Might be
tricky to implement I guess.

Folkert van Heusden

--
MultiTail cok yonlu kullanimli bir program, loglari okumak, verilen
kommandolari yerine getirebilen. Filter, renk verme, merge, 'diff-
view', vs. http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com