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

From: David Xu <davidxu_at_freebsd.org>
Date: Thu, 17 Mar 2005 17:34:26 +0800
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
>  
>
Received on Thu Mar 17 2005 - 08:34:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:30 UTC