how to run parallel processes ?
My use case is to split a huge gz file into multiple files and then run another java code in parallel on these multiple files and exit the main program when these all child programs finish.
My question is
how can I do it in java ?:
i) what is best way to split a huge file (20-30 GB) into smaller chunks ?
ii) what is best way to run lot of parallel processes from a java program, where all processes do the same thing and main process should exit when these processes finish.
iii) Also, is it possible for main program to get exception if any of the child fails and it can re-submit this child again after correcting error condition .