1 /* Testcase for issue1343 */
12 void* tester(void *arg)
17 int main(int argc, char *argv[])
25 printf("Need one argument\n");
29 nthreads = atoi(argv[1]);
30 threads = malloc(nthreads * sizeof(pthread_t));
34 printf("Trying with %d threads\n", nthreads);
36 printf("Creating tester threads\n");
37 for (i = 0; i < nthreads; i++)
38 pthread_create(&threads[i], NULL, tester, NULL);
42 printf("Starting join procedure...\n");
43 for (i = 0; i < nthreads; i++)
44 pthread_join(threads[i], NULL);