in reply to Run a script in parallel mode

There should be a way to run the 20 instances of your Java program as different threads inside just one Java Virtual Machine (JVM) process.

It may be more effective than 20 parallel JVM processes fighting for the same system resources (RAM+CPU) as Java is not very friendly in that regard.

Update: There is Nailgun!

Replies are listed 'Best First'.
Re^2: Run a script in parallel mode
by Anonymous Monk on May 26, 2015 at 12:50 UTC
    You mean that there is a problem if I call the java code like 10 times simultaneously?
      Not a problem as such, but it could be not the most efficient way.