set the name of a thread
thread, const char
thread, char *name,
function associates name with
thread. This can be useful for debugging, as the name
is displayed in the thread status as displayed when the process receives the
The string pointed to by name is copied, and so need not be valid for the life of the thread.
function retrieves name associated with
These functions are non-portable and may not be supported with the above semantics on other POSIX systems.