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.
- Dividing a Large file into Separate Modules in C/C++, Java and Python
- C program to store Student records as Structures and Sort them by Name
- Similarities and Differences between Ruby and C language
- Program to copy the contents of one array into another in the reverse order
- Interesting facts about C Language
- Program to Reverse a String using Pointers
- Difference between Structure and Array in C
- Structured Programming Approach with Advantages and Disadvantages
- Commonly used String functions in C/C++ with Examples
- Program to check if two strings are same or not
- putchar() function in C
- Difference between C and C++
- Code Optimization Technique (logical AND and logical OR)
- Difference between C and Python
- Else without IF and L-Value Required Error in C