Lines Matching refs:threads
38 { "threads", required_argument, NULL, 'j' },
52 " -j, --threads=N Threads to run concurrently\n"
149 pthread_t *threads;
200 threads = malloc(sizeof(*threads) * nthreads);
202 if (threads == NULL || args == NULL) {
203 fprintf(stderr, "Unable malloc enough memory for %d threads\n", nthreads);
227 if (pthread_create(&threads[j], &attr, concurrent, (void *) &args[j]) != 0) {
238 if (pthread_join(threads[j], NULL) != 0) {
252 free(threads);