[TEST/REVIEW/PERF] kern_thread.c tid allocation patch

David Xu davidxu at freebsd.org
Thu Mar 17 01:34:29 PST 2005


Thread ID should start from (PID_MAX + 1).

David Xu

Poul-Henning Kamp wrote:

>While investigating a Coverity report (false alarm btw) I noticed
>that kern_thread has a lot of code for allocating thread id's.
>
>This patch uses subr_unit instead.
>
>I would expect thread create/destroy performance to increase on
>systems where there are many threads, and would be interested
>if anybody can measure any difference.
>
>Poul-Henning
>  
>



More information about the freebsd-current mailing list