Thread Creation/Termination (Cont.) /* meanwhile, in 'main'.... */ int main() { int thr_id; /* ID of new thread */ pthread_t thread; /* thread's structure. */ thr_id = pthread_create(&thread, NULL, thread_func, (void*)NULL); printf("I created my first thread! Yey!\n"); sleep(5); /* allow the thread to run */ return 0; }