Pour terminer un thread, il faut demander sa terminaison par :
thr_exit(status)
Cette fonction force la fin d'un thread et passe la valeur status qui sera récupérée par thr_join.
Un thr_exit(NULL) est fait implicitement à la fin de start_routine.
Les thread non-détachés (défaut) passent à l'état zombie quand ils se terminent tant que thr_join n'a pas récupéré leur status.
C'est pourquoi il est nécessaire d'attendre la fin d'un thread par : thr_join(thread_id, thr_retour, status