Documentation Home
>
Multithreaded Programming Guide
>
Chapter 2 Basic Threads Programming
>
The Threads Library
>
Get the Thread Identifier
>
pthread_self(3THR)
> Return Values
Multithreaded Programming Guide
Previous
: Get Thread-Specific Data
Next
: Compare Thread IDs
Return Values
pthread_self()
returns the
thread identifier
of the calling thread.
Previous
: Get Thread-Specific Data
Next
: Compare Thread IDs
© 2010, Oracle Corporation and/or its affiliates