一. 脚本源码
compute_it 1 > compute_it.1.out &
compute_it 2 > compute_it.2.out &
wait
cat compute_it.1.out
cat compute_it.2.out
二.执行过程
wait:等待该shell进程的子进程执行结束(也就是compute_it 1和compute_it 2)。
三.进程操作其他原语
Processes are created using the fork() primitive, they may be destroyed
using the kill() primitive, they may destroy themselves using the exit()
primitive. A process executing a fork() primitive is said to be the “parent”
of the newly created process. A parent may wait on its children using the
wait() primitive.