NAME gettid - get thread identification LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #define _GNU_SOURCE ... include pid_t gettid(void); DESCRIPTION gettid () returns the c…equivalently, the value returned by gettid (2). Without VFS capabilities support On older kernels that ... thread ID of the type returned by gettid (2). For capset (), pid can alsoequivalently, the value returned by gettid (2). Without VFS capabilities support On older kernels that ... thread ID of the type returned by gettid (2). For capset (), pid can alsopass F_SETOWN the result of gettid (2) instead of getpid (2) to get sensible ... single-threaded program can equally use gettid (2) or getpid (2) in this scenario.) Notepass F_SETOWN the result of gettid (2) instead of getpid (2) to get sensible ... single-threaded program can equally use gettid (2) or getpid (2) in this scenario.) Noteeach thread. For further details, see gettid (2) and the discussion of the CLONE_THREAD ... ALSO clone (2), fork (2), gettid (2), kill (2), exec (3), mkstemp (3), tempnameach thread. For further details, see gettid (2) and the discussion of the CLONE_THREAD ... ALSO clone (2), fork (2), gettid (2), kill (2), exec (3), mkstemp (3), tempnamvalue returned from a call to gettid (2) can be passed in the argument ... clone (2), getcpu (2), getpriority (2), gettid (2), nice (2), sched_get_priorityvalue returned from a call to gettid (2) can be passed in the argument ... clone (2), getcpu (2), getpriority (2), gettid (2), nice (2), sched_get_prioritythread can obtain its own TID using gettid (2). When a clone call is made ... ALSO fork (2), futex (2), getpid (2), gettid (2), kcmp (2), mmap (2), pidfd_openthread can obtain its own TID using gettid (2). When a clone call is made ... ALSO fork (2), futex (2), getpid (2), gettid (2), kcmp (2), mmap (2), pidfd_openthread can obtain its own TID using gettid (2). When a clone call is made ... ALSO fork (2), futex (2), getpid (2), gettid (2), kcmp (2), mmap (2), pidfd_openthat is returned by gettid (2) or clone (2). These system calls have an effectPOSIX.1-2008. HISTORY POSIX.1-2001. SEE ALSO getpriority (2), gettid (2), nice (2), sched_get_prioritykind returned by clone (2) and gettid (2). SEE ALSO futex (2), pthread_mutexattr_setrobustvalue returned from a call to gettid (2) can be passed in the argumentkind returned by clone (2) and gettid (2). SEE ALSO futex (2), pthread_mutexattr_setrobustPOSIX.1-2008. HISTORY POSIX.1-2001. SEE ALSO getpriority (2), gettid (2), nice (2), sched_get_priorityvalue returned from a call to gettid (2) can be passed in the argument