I would like to run a large number of intensive processes in parallel, where I iterate over different parameters using loops. A number of answers to such questions mention that parallel processes can be performed using xargs, but none of them seem to mention if and how this can be done if the parameters are changed for each command.
As an example (pseudocode):
for paramA in 1 2 3
for paramB in 1 2 3
./intensiveCommand $paramA $paramB
end
end
I would like to parallellize intensiveCommand
Or is it easier to use xargs?
source
share