Thread Creation/Termination When a multi-threaded program starts executing, it has one thread, which executes the 'main' function. In order to create a thread, we need to have a 'thread function', and to use the "pthread_create" function: #include /* for pthread functions */ /* the thread function */ void* thread_func(void* data) { printf("Hello, i am a new thread\n"); pthread_exit(NULL); }