Query: pthread_detach
OS: hpux
Section: 3t
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
pthread_detach(3T) pthread_detach(3T)NAMEpthread_detach() - mark a thread as detached to reclaim its resources when it terminatesSYNOPSISPARAMETERSthread Thread whose resources are to be reclaimed immediately when it terminates.DESCRIPTIONis used to detach the thread thread. When thread terminates, its resources will automatically be reclaimed by the system. If thread has already terminated, causes the resources of thread to be reclaimed by the system. does not cause thread to terminate. Once a detached thread has terminated, its resources, including the thread ID, may be reused by the system. The return status of a detached thread is lost when the thread terminates. Calling this function multiple times for the same thread results in undefined behavior.RETURN VALUEUpon successful completion, returns zero. Otherwise, an error number is returned to indicate the error (the variable is not set).ERRORSIf any of the following occur, the function returns the corresponding error number: [EINVAL] thread does not refer to a joinable thread. [ESRCH] No thread could be found corresponding to thread.AUTHORwas derived from the IEEE POSIX P1003.1c standard.SEE ALSOpthread_create(3T), pthread_join(3T), wait(2).STANDARDS CONFORMANCEPthread Library pthread_detach(3T)
Related Man Pages |
---|
pthread_detach(3c) - opensolaris |
pthread_detach(3) - linux |
pthread_detach(3) - suse |
pthread_detach(3) - minix |
pthread_detach(3) - opendarwin |
Similar Topics in the Unix Linux Community |
---|
Disabling thread deletion by OP? |
Non Technical, really !! |
awk - Counting number of similar lines |
Stripping out extensions when file has multiple dots in name |
Shifting of lines in a file |