Category: pthread_self
POSIX : How to get thread Id of a pthread in Linux | pthread_self() | pthread_equals()
In this article we will discuss how to get thread id of a pthread and compare different thread ids. How to get thread id of current thread Use pthread_self() to get the current thread id i.e. Advertisements #include <pthread.h> pthread_t pthread_self(void); It returns the thread id as pthread_t object for the calling thread. As main function is …
POSIX : How to get thread Id of a pthread in Linux | pthread_self() | pthread_equals()Read More