Find all files with the extension .jpg in the /tmp directory and compress them into a tarball named output.tar.gz using 8 processes in parallel.
find /tmp -name *.jpg -type f | xargs -P 8 -r tar cfvz output.tar.gz