Lines Matching refs:threads
68 static unsigned int threads;
101 "-t <num>\t Number of threads (2 * number cpus by default)\n"
125 threads = 2 * sysconf(_SC_NPROCESSORS_ONLN);
171 threads = atoi(optarg);
172 if (threads == 0)
204 printf("threads %u\n", threads);
453 pthread_t thread_array[threads];
461 printf("Threads starting\n");
463 for (i = 0; i < threads; i++) {
487 for (i = 0; i < threads; i++) {
496 printf("Threads finished\n");