マルチスレッドのプログラミング

pthread_self の構文

pthread_t  pthread_self(void);
#include <pthread.h>

pthread_t tid;

tid = pthread_self();