Obtains the identifier of the current thread.
pthread_self();
#includepthread_t pthread_self (void);
This value becomes meaningless when the thread is deleted.
pthread_cancel pthread_create pthread_detach pthread_exit pthread_join pthread_kill pthread_sigmask