Multithreaded Bash

Avoiding leaks

Comments are moderated. It may take a few minutes before your comment appears.
Markdown is supported in your comments.

for n in $packages; do
    rpc_thread "$n" &
    while (( $(jobs | wc -l) >= 8 )); do
        sleep 0.1
        jobs > /dev/null
    done
done
wait
Name:
Mail: (not shown)

Please type this: