-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
42 lines (31 loc) · 1.04 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
cygwin project provides an efficient and POSIX-compliant "user-mode"
implementation of posix_spawn [1] for Cygwin. Using this facility
improves process-creation performance considerably, especially for
large processes:
~/cygspawn
$ sh bench.sh
+ env ITER=1000 ./testspawn true
real 0m4.508s
user 0m1.275s
sys 0m2.675s
+ env ITER=1000 ./testfork true
real 0m8.845s
user 0m2.847s
sys 0m5.230s
+ env ITER=1000 JUNKBYTES=209715200 ./testspawn true
real 0m5.179s
user 0m1.550s
sys 0m2.661s
+ env ITER=1000 JUNKBYTES=209715200 ./testfork true
real 1m57.523s
user 0m3.049s
sys 1m52.339s
All posix_spawn functionality is supported, and no special
configuration is required. This library must be dynamically linked
into any program using POSIX spawn.
To install:
make
make install prefix=/usr
To build programs with posix_spawn:
gcc -o foo foo.c -lcygspawn
[1] http://pubs.opengroup.org/onlinepubs/009695399/functions/posix_spawn.html