set the name of a thread
thread, const char
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.
pthread_set_name_np() function is
non-portable and may not be supported with the above semantics on other