Lines Matching refs:num_processes
74 static int num_processes = 2; variable
97 for (pidx = 0; pidx < num_processes; ++pidx) in __handle_error()
175 void create_processes(int num_processes, int num_threads, struct child_args proc[]) in create_processes() argument
180 for (i = 0; i < num_processes; ++i) { in create_processes()
192 for (i = 0; i < num_processes; ++i) { in create_processes()
201 void disp_processes(int num_processes, struct child_args proc[]) in disp_processes() argument
208 for (i = 0; i < num_processes; ++i) { in disp_processes()
245 num_processes = (int)strtol(optarg, NULL, 10); in main()
264 if (num_processes < 1 || num_processes > MAX_PROCESSES) in main()
280 create_processes(num_processes, num_threads, procs); in main()
282 disp_processes(num_processes, procs); in main()
288 disp_processes(num_processes, procs); in main()
293 pidx = rand() % num_processes; in main()
302 disp_processes(num_processes, procs); in main()
312 disp_processes(num_processes, procs); in main()
323 disp_processes(num_processes, procs); in main()
331 disp_processes(num_processes, procs); in main()
355 for (pidx = 0; pidx < num_processes; ++pidx) in main()