NAME pthread_self - obtain ID of the calling thread LIBRARY POSIX threads library ( libpthread , -lpthread ... SYNOPSIS #include pthread_t pthread_self(void); DESCRIPTION The pth…sched_param param; s = pthread_getschedparam(pthread_self(), &policy, ¶m); if (s != 0) handle_error ... NULL, 0); s = pthread_setschedparam(pthread_self(), policy, ¶m); if …sched_param param; s = pthread_getschedparam(pthread_self(), &policy, ¶m); if (s != 0) handle_error ... NULL, 0); s = pthread_setschedparam(pthread_self(), policy, ¶m); if …STANDARDS POSIX.1-2008. HISTORY POSIX.1-2001. NOTES See pthread_self (3) for further information on the thread ... getattr_np (3), pthread_join (3), pthread_self (3), pthread_setat…cpuset; pthread_t thread; thread = pthread_self(); /* Set affinity mask to include CPUs ... pthread_attr_setaffinity_np (3), pthread_self (3), sched_getcpu (3), cpuset (7), pthread…PROCESS_CPUTIME_ID); s = pthread_getcpuclockid(pthread_self(), &cid); if (s != 0) handle_error ... timer_create (2), clock_getcpuclockid (3), pthread_self (3), pthreads (7), timecpuset; pthread_t thread; thread = pthread_self(); /* Set affinity mask to include CPUs ... pthread_attr_setaffinity_np (3), pthread_self (3), sched_getcpu (3), cpuset (7), pthread…obtain its own thread identifier using pthread_self (3). Thread IDs are guaranteedkill (2), sigaction (2), sigpending (2), pthread_self (3), pthread_sigmask (3), raise (3), pthreadsattr_setschedpolicy (3), pthread_create (3), pthread_self (3), pthread_setschedparam (3), pthreads (7), scheddetaches the calling thread: pthread_detach(pthread_self()); SEE ALSO pthread_attr_setdetachstate (3), pthreadfirst argument. */ s = pthread_getattr_np(pthread_self(), &gattr); if (s != 0) errc(EXIT_FAILUREcreated thread:\n"); display_thread_attributes(pthread_self(), "\t"); exit(EXIT_SUCCESS); /* Terminate all threadsfirst argument. */ s = pthread_getattr_np(pthread_self(), &gattr); if (s != 0) errc(EXIT_FAILUREopaque value returned by pthread_self (3)). In a new thread group createdequivalent to pthread_kill(pthread_self(), sig); If the signal causes a handlerpthread_rwlockattr_destroy () pthread_rwlockattr_init () pthread_self () pthread_setcancelstate () pthread_setcanceltype () pthread_setspecific () pthreadkill (3) Added in POSIX.1-2008 TC1 pthread_self (3) Added in POSIX.1-2008 TC1 pthread_sigmask