worker thread performance question

Julian Elischer julian at
Wed Dec 15 11:39:23 PST 2004

Petri Helenius wrote:

> With libpthread is it usually optimal to have as many worker threads 
> (CPU bound stuff) as kern.threads.virtual_cpu or have, say double the 
> number so that there is always a thread in the run queue when another 
> hits a mutex or sleep? 

Are they always runnable?
theoretically you can schedule as many as you want.
any number > NCPU should keep teh system busy, but
I'm not sure I fully understand the question.

> Pete
> _______________________________________________
> freebsd-threads at mailing list
> To unsubscribe, send any mail to 
> "freebsd-threads-unsubscribe at"

More information about the freebsd-threads mailing list