repo.or.cz
/
dragonfly.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
nfe_init() should be called with softc not ifnet
[dragonfly.git]
/
test
/
sysperf
/
fork1.c
blob
e36e3ad2e6fbc21e76dd768780cadfdd0585c6f9
1
/*
2
* fork1.c
3
*
4
* $DragonFly: src/test/sysperf/fork1.c,v 1.1 2003/08/12 02:29:44 dillon Exp $
5
*/
6
7
#include
"blib.h"
8
9
int
10
main
(
int
ac
,
char
**
av
)
11
{
12
int
j
;
13
14
start_timing
();
15
for
(
j
=
0
;
j
<
10000
; ++
j
) {
16
if
(
fork
() ==
0
) {
17
_exit
(
1
);
18
}
else
{
19
while
(
wait
(
NULL
) >
0
);
20
}
21
}
22
stop_timing
(
j
,
"fork/exit/wait:"
);
23
return
(
0
);
24
}
25