Re:A Close Look at a Spinlock
by cperciva on Saturday November 06, 2021 @09:03PM
(#29135441)
FreeBSD has "adaptive locks" in the kernel, but the logic works the other way: A sleep mutex might spin for a while before sleeping. Going the other way wouldn't work because there's some contexts (e.g. in a lightweight interrupt handler) where you can't sleep.
[ Parent
| on HN ]
There are no comments on this comment yet.