Shell Script to Execute commands in parallel

Hi There,
Do you have some kind of {network operation / file operation} to do in parallel? Here is shell script  to help you.

Suppose you have 10 thousand items in a file (one item per line) which requires some parallel processing, you can use this script to get your work done!

Note: if you are doing pure math, do not make it parallel, it will not help much on single core CPU.
But if you are doing some network operation, you can make it parallel, it will help you for sure!!

How to Use?
You need to provide following inputs
cmdParams -->  A file with 1 item per line which requires some processing
maxthread  --> Specify max threads to fork

executeInSerial function will get each item as $1 do some operation with it, Implement it as you want it.

Here is script