cc -mt [ flag... ] file... -lpthread [ -lrt library... ] #include <pthread.h>
The pthread_self() function returns the thread ID of the calling thread.
No errors are defined.
See attributes(5) for descriptions of the following attributes:
pthread_create(3THR), pthread_equal(3THR), attributes(5), standards(5)