8 test_thread (void *v_param
)
19 ts
.tv_nsec
= 10 * 1000;
21 setvbuf (stdout
, NULL
, _IONBF
, 0);
23 for (count
= 0; count
< 2000; ++count
)
28 status
= pthread_create (&thread
, NULL
, test_thread
, NULL
);
31 printf ("status = %d, count = %lu: %s\n", status
, count
,
37 printf ("count = %lu\n", count
);
39 /* pthread_detach (thread); */
40 pthread_join (thread
, NULL
);
41 nanosleep (&ts
, NULL
);