kernel thread as real threads..

David Xu davidxu at
Fri Jan 20 17:04:09 PST 2006

Julian Elischer wrote:

> Scott Long wrote:
>> Does pthreads allow the programmer to name threads in a user and/or
>> kernel visible way?  Is this something that is really all that
>> important?
> There is a way,
> but it's more important for kernel threads.. it's nice to see which  
> is which.
> Even in user threads (1:1) if one thread is running away, it's nice to 
> see which one it is.
> We should have an interface on M:N thread sto allow a process to get 
> thread stats.. probably implemented as
> a management thread or something. (maybe the signal thread could do it).
I will implement pthread_set_name_np for libthr. but I am not sure you 
spend precious time on M:N again, it is already very diffcult to 
introduce a new
scheduler with current framework, putting more constrains only reduces 
for such thing.

More information about the freebsd-current mailing list