Thread Creation/Termination (Cont.) The thread function invoked 'pthread_exit' in order to terminate its thread. It could also just return to the caller - when a thread's main function returns, the thread running it is terminated.