cread threa1 and thread2 and use pthread_join() to the thread so that main program will wait for both thread to finish their routines