Thread termination
Implicit : Simply returning from the function executed by the thread terminates the thread. In this case thread’s completion status is set to the return value.
Explicit : Use thread_exit.
Prototype: void thread_exit(void *status);
The pointer value in the variable “status” is available to the threads waiting for this thread.