8 test_thread (void *v_param
)
18 setvbuf (stdout
, NULL
, _IONBF
, 0);
20 for (count
= 0; count
< 2000; ++count
)
25 status
= pthread_create (&thread
, NULL
, test_thread
, NULL
);
28 printf ("status = %d, count = %lu: %s\n", status
, count
,
34 printf ("count = %lu\n", count
);
36 /* pthread_detach (thread); */
37 if (pthread_join (thread
, NULL
) != 0)
39 printf ("join failed, count %lu\n", count
);