pthread_join() and pthread_exit()

In pthread_exit, ret is an input parameter. You are simply passing the address of a variable to the function. In pthread_join, ret is an output parameter. You get back a value from the function. Such value can, for example, be set to NULL. Long explanation: In pthread_join, you get back the address passed to pthread_exit by the finished thread. If you pass just a plain … Read more