[root@localhost /]# cat /Makefile
all: a b c d
a:
sleep 2
b:
sleep 2
c:
sleep 2
d:
sleep 2
[root@localhost /]# time make
sleep 2
sleep 2
sleep 2
sleep 2
real 0m8.068s
user 0m0.005s
sys 0m0.007s
[root@localhost /]# time make -j2
sleep 2
sleep 2
sleep 2
sleep 2
real 0m4.013s
user 0m0.006s
sys 0m0.007s
[root@localhost /]# time make -j4
sleep 2
sleep 2
sleep 2
sleep 2
real 0m2.014s
user 0m0.007s
sys 0m0.009s
[root@localhost /]#
参考:http://bbs.csdn.net/topics/380072770