3 extern void print (char *);
11 for (i=0; i<PRINT_LOOP; i++)
21 pthread_create (&thread1, NULL, th_main, "aaa");
22 pthread_create (&thread2, NULL, th_main, "bbb");
23 pthread_create (&thread3, NULL, th_main, "ccc");
24 pthread_join (thread1, NULL);
25 pthread_join (thread2, NULL);
26 pthread_join (thread3, NULL);