Running processes in parallel
You can start up several processes at once by separating the commands
with ampersand (
&) characters. For example, this
% prune&weed&water&would run the three commands
water, all at the same time.
Warning! Since all processes on a machine compete for resources on an equal basis, it is really anti-social to start up a lot of compute-intensive processes on the same machine. It is actually faster if you run them one at a time in sequence. You can do this by putting parentheses around a sequence of processes and using an ampersand after the closing parenthesis, like this:
% (prune;weed;water)&This would run the
prunejob first, then the
weedprocess, then the
watercommand, but they would all be running in the background, and you would get another Unix prompt right away.
John Shipman, firstname.lastname@example.org
Last updated: 1995/12/04 19:39:34 UT