pthread_equal() = This compares two thread which is equal or not. This function compares two thread identifiers. It return ‘0’ and non zero value. If it is equal then return non zero value else return 0.
Syntax:- int pthread_equal (pthread_t t1, pthread_t t2);
First Method :- Compare with self thread
Second Method :- Compare with other thread
This article is contributed by Devanshu Agarwal. If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
- pthread_cancel() in C with example
- _Noreturn function specifier in C
- Differentiate printable and control character in C ?
- pthread_self() in C with Example
- Bresenham’s circle drawing algorithm
- Why is C considered faster than other languages ?
- Executing main() in C/C++ - behind the scene
- Arrays in C/C++
- Write one line functions for strcat() and strcmp()
- Return values of printf() and scanf() in C/C++
- C++ | Nested Ternary Operator
- Working of Keyword long in C programming
- Code valid in both C and C++ but produce different output
- Different ways to Initialize all members of an array to the same value in C
- Why does sizeof(x++) not increment x in C?