![[Return to Bookshelf]](BOOKSHELF.GIF) 
![[Contents]](TOC.GIF) 
![[Previous Section]](PREV.GIF) 
![[Next Section]](NEXT.GIF) 
![[Index]](INDEX.GIF) 
![[Help]](HELP.GIF) 
Obtains the identifier of the current thread.
Syntax
pthread_self();
C Binding
pthread_t
pthread_self ();
Arguments
- 
-  None 
Description
 This routine allows a thread to obtain its own identifier.
Use this identifier in calls to pthread_setprio and pthread_
setscheduler.
This value becomes meaningless when the thread object is deleted-
that is, when the thread has terminated its execution and pthread_
detach has been called.
Return Values
Returns the identifier of the calling thread to pthread_t.
![[Return to Bookshelf]](BOOKSHELF.GIF) 
![[Contents]](TOC.GIF) 
![[Previous Section]](PREV.GIF) 
![[Next Section]](NEXT.GIF) 
![[Index]](INDEX.GIF) 
![[Help]](HELP.GIF)