1 2 3 4 5 6 7 8 9 10 11 12 13
#include <pthread.h> void* thread_code(void* _data) { pthread_exit(NULL); } int main(void) { pthread_t thread; pthread_create(&thread, NULL, thread_code, NULL); pthread_join(thread, NULL); return 0; }