Inner workings of turnstiles and sleepqueues

Jason Evans jasone at freebsd.org
Tue Oct 16 11:11:25 PDT 2007


Ed Schouten wrote:
> For some reason, I want to understand how the queueing of blocked
> threads in the kernel works when waiting for a lock, which is if I
> understand correctly done by the turnstiles and sleepqueues. I'm the
> proud owner of The Design and Implementation of the FreeBSD Operating
> System book, but for some reason, I can't find anything about it in the
> book.
>
> Is there a way to obtain information about how they work? I already read
> the source somewhat, but that shouldn't be an ideal solution, in my
> opinion.

You might take a look at _Solaris Internals_ by Mauro and McDougall.

Jason


More information about the freebsd-hackers mailing list