Documentation Home
>
Multithreaded Programming Guide
>
Chapter 9 Programming with Solaris Threads
>
Similar Solaris Threads Functions
>
Get the Thread Identifier
> thr_self(3T)
Multithreaded Programming Guide
Previous
: Get the Minimal Stack Size
Next
: Yield Thread Execution
thr_self(3T)
Use
thr_self(3T)
to get the ID of the calling thread.
#include <thread.h> thread_t thr_self(void);
Previous
: Get the Minimal Stack Size
Next
: Yield Thread Execution
© 2010, Oracle Corporation and/or its affiliates