Hi!
JobQueue is a ruby gem, that allows you to run Ruby methods and system commands in parallel. It comes with an 
executable prun.rb with takes two arguments: Number of worker threads and a shell scripts, from which line is 
executed in parallel wrt the given number of threads.

Thanks to Robert Klemme, who provided some implementation ideas some years ago.

Hints for improvements and any type of criticism are very welcome! Hope you'll find it usefull.


doc: http://rubydoc.info/gems/jobQueue/frames
dev: https://github.com/Try2Code/jobQueue
tests: https://github.com/Try2Code/jobQueue/blob/master/test/test_jobqueue.rb