Or, good enough for 95% of the use cases, simply use 'xargs' which is part of findutils and installed by default on all linux distributions. See the '-P/--max-procs' option in the man page for more details.
[1] http://www.gnu.org.ua/software/pies/
list-hosts |
xargs \
-P8 \
-n1 \
-I% \
ssh % some-command