1. Que fait pthread_join(tid, status) ?
Il suspend le thread appelant jusqu’à la fin du thread identifié par tid
Explication
pthread_join() bloque le thread appelant jusqu’à la fin du thread désigné par tid et peut récupérer son état de terminaison. Ce n’est ni une création de thread ni un remplacement de programme.