1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include <pthread.h> #include <stdio.h> #include <time.h> static void* a(void* aa) { } int main() { pthread_t abc; pthread_create(&abc, NULL, a, NULL); printf("ok\n"); pthread_join(abc, NULL); printf("will i printed?\n"); }