For the simple case plain bash has been enough for me: start jobs in a loop, and once jobs -rp | wc -l hits the cap, run wait -n before starting the next one. I tested it with 5 one-second jobs and a cap of 2, and it finished in 3 seconds, which is what you'd expect. Needs bash 4.3+ for wait -n, though.