bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

document -j


From: Dan Jacobson
Subject: document -j
Date: Fri, 27 Aug 2004 14:08:28 +0800

   Parallel Execution
   GNU `make' knows how to execute several commands at once.  Normally,
   `make' will execute only one command at a time, waiting for it to
   finish before executing the next.  However, the `-j' or `--jobs' option
   tells `make' to execute many commands simultaneously.

Well, without examples in the manual, we are left to guess and
experiment. For instance, I have discovered that one will not see
parallelism with make -j a, but will with make -j b:
a:
        sleep 11
        sleep 12
b: c d
c:
        sleep 7
d:
        sleep 5
So this, say, could be documented.

Maybe mention that this shows equivalence with sleep tests:
$ f=$SECONDS;make -j x y;expr $SECONDS - $f
$ f=$SECONDS;make x& make y& wait;expr $SECONDS - $f
But wait, that is only if x and y don't have any dependencies.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]