pthread_self(3) Library Functions Manual pthread_self(3) pthread_self - ID LIBRARY POSIX threads library (libpthread, -lpthread) #include pthread_t pthread_self(void); pthread_self() . *thread pthread_create(3) . , . . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |pthread_self() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. POSIX.1-2001. POSIX.1 , ; , . pthread_t C (==); pthread_equal(3). << >>: ID pthreads . . . , pthread_self() gettid(2). . pthread_create(3), pthread_equal(3), pthreads(7) Alexey, Azamat Hackimov , kogamatranslator49 , Kogan, Max Is , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . pthread_self(3)