Naming pthreads??

Naming pthreads??

Post by Vina » Fri, 31 Aug 2007 19:30:54


Hi,
Can we name the thread created in LINUX?

Thanks in advance..
 
 
 

Naming pthreads??

Post by Ivan Wan » Sat, 01 Sep 2007 00:01:28


You can use pthread_getspecific() and pthread_setspecific() to set/get
the name for a thread.


Thanks
yifan