pthread_{mutex,cond} & fifo/starvation/scheduling policy

Dag-Erling Smørgrav des at des.no
Tue Jan 19 11:16:37 UTC 2010


Bernard van Gastel <bvgastel at bitpowder.com> writes:
> What is the scheduling policy of the different thread libraries?

Threads are scheduled by the kernel, not by the library.  Look at
sys/kern/sched_umtx.c and sys/kern/sched_{4bsd,ule}.c.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-hackers mailing list