Running Work in Parallel: &, wait and xargs -P
Commands that each take a while can run side by side: & starts each one in the background and wait holds the script until all of them have finished, while xargs -P runs a set number at a time, so 12 one-second photo resizes take 3 seconds instead of 12.
Updated

- Category
- Bash
- Level
- Freelancer
- Tags
- background-job, cpu-core, linux, parallel-processing, unix, wait, xargs