6 thread1_func(void* arg)
8 printf("Thread 1 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid());
13 thread2_func(void* arg)
15 printf("thread 2 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid());
24 pthread_create( &t1, NULL, thread1_func, (void *)1 );
26 pthread_join(t1, NULL);