Lines Matching +full:parallel +full:- +full:in
4 # SPDX-License-Identifier: BSD-2-Clause
8 # Redistribution and use in source and binary forms, with or without
13 # 2. Redistributions in binary form must reproduce the above copyright
14 # notice, this list of conditions and the following disclaimer in the
20 # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
24 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 mycc -o kevent15 -Wall -Wextra -O0 -g kevent15.c || exit 1
39 rm -f kevent15.c
42 (cd ../testcases/swap; ./swap -t 3m -i 20 -l 80) &
49 [ -f kevent15.core -a $s -eq 0 ] &&
50 { ls -l kevent15.core; s=1; }
53 rm -rf $dir/kevent15
75 #define PARALLEL 800
95 while (atomic_load(&share[SYNC]) != PARALLEL)
106 while (time(NULL) - start < 30) {
109 if ((ret = kevent(kq, &ev[0], 1, &ev[1], 1, &ts)) == -1)
121 pid_t pids[PARALLEL];
128 MAP_ANON | MAP_SHARED, -1, 0)) == MAP_FAILED)
132 while ((time(NULL) - start) < RUNTIME) {
134 for (i = 0; i < PARALLEL; i++) {
137 if (pids[i] == -1)
140 while (share[ACT] != PARALLEL)
143 for (i = 0; i < PARALLEL; i++) {
144 if (kill(pids[i], SIGUSR1) == -1)
148 for (i = 0; i < PARALLEL; i++) {
149 if (waitpid(pids[i], &status, 0) == -1)