Rather than executing the body, the pthread_exit function is called to get the thread output at finish.