 | | When you create a thread, pthread_create returns a thread handle of type pthread_t. You can save this handle and use it to determine a thread's identity using the pthread_self and pthread_equal function calls. The pthread_self call returns the thread handle of the calling thread and pthread_equal compares two thread handles.* You might use the two calls to identify a thread when it enters a routine, as shown in Example 1-7. | |
|