Terminates the calling thread.
pthread_exit( status );
Argument Data Type Accessstatus opaque pthread_addr_t read
void pthread_exit ( pthread_addr_t status);
An implicit call to pthread_exit is issued when a thread returns from the start routine that was used to create it. The function's return value serves as the thread's exit status. The process exits when the last running thread calls pthread_exit.