Lines Matching refs:threads
28 * worker threads
95 int i, j, rc, threads;
102 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR;
103 tids = malloc(threads * sizeof(pthread_t));
107 threads_starting = threads;
108 for (i = 0; i < threads; i++) {
114 printf("\tWaiting for %d workers to start... %d", threads, threads_starting);
122 printf("\tSending signals to all threads %d times...", ITERATIONS);
124 for (j = 0; j < threads; j++) {
133 for (i = 0; i < threads; i++) {