Re: kernel thread as real threads..

From: Daniel Eischen <deischen_at_freebsd.org>
Date: Sun, 22 Jan 2006 09:21:05 -0500 (EST)
On Sat, 21 Jan 2006, M. Warner Losh wrote:

> In message: <Pine.GSO.4.43.0601201443570.1773-100000_at_sea.ntplx.net>
>             Daniel Eischen <deischen_at_freebsd.org> writes:
> : On Fri, 20 Jan 2006, 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?
> :
> : Only in a non-portable way.  See pthread_set_name_np(3).
>
> This 'non-portable' way is in heavy use in at least one user of
> FreeBSD's software base.

Well, I'm not advocating its removal, just clarifying that
there is no POSIX interface for setting a thread's name.
I originally added that interface as a debugging aid for
application developers after finding it useful myself in
debugging the library.  I'm not sure you want to reuse the
same interface for setting kernel thread names.  For KSE
or libc_r type threads, it wouldn't work too well.

-- 
DE
Received on Sun Jan 22 2006 - 13:21:19 UTC

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