Lines Matching refs:num_threads
66 int num_threads; member
133 static void create_threads(int num_threads, int thr_tids[]) in create_threads() argument
139 for (i = 0; i < num_threads; ++i) { in create_threads()
157 create_threads(ca->num_threads, ca->thr_tids); in child_func_process()
159 write(ca->pfd[1], &ca->thr_tids, sizeof(int) * ca->num_threads); in child_func_process()
169 void create_processes(int num_processes, int num_threads, struct child_args proc[]) in create_processes() argument
175 proc[i].num_threads = num_threads; in create_processes()
187 read(proc[i].pfd[0], &proc[i].thr_tids, sizeof(int) * proc[i].num_threads); in create_processes()
202 for (j = 0; j < proc[i].num_threads; ++j) { in disp_processes()
226 int num_threads = 3; in main() local
239 num_threads = (int)strtoul(optarg, NULL, 10); in main()
258 if (num_threads < 1 || num_threads > MAX_THREADS) in main()
271 create_processes(num_processes, num_threads, procs); in main()