What possible outcomes might there be if a thread executes the following code:
pthread_join(pthread_self(), NULL);
Write a program to see what actually happens on Linux. If we have a variable, tid, containing a thread ID, how can a thread prevent itself from making a call, pthread_join(tid, NULL), that is equivalent to the above statement?