pthread_t tid; //declaration of thread id pthread_create(&tid, NULL, &routine, NULL); //routine is a function that takes in void pointer and returns a void pointer pthread_join(tid)