Create join2.c

example for pthread_join()