4 * Used as a helper to test AST delivery. Loops in user mode for a few
5 * seconds. This one forks and runs the loop in two processes.
7 * $DragonFly: src/test/sysperf/loop2.c,v 1.1 2003/08/12 02:29:44 dillon Exp $
12 #define LOOP 100000000
17 main(int ac
, char **av
)
22 printf("SMP contention, userland-only loop, duel-forks. Run just one\n");
26 for (i
= 0; i
< LOOP
; ++i
)
30 for (i
= 0; i
< LOOP
; ++i
)
32 while (wait(NULL
) > 0);
33 stop_timing(LOOP
, "loop2/2xfork");