I am reading a CODE_LIST1.TXT file and passing the contents as variables into the genscript.ksh script
The problem is that CODE_LIST1.TXT could have 100 lines out there and currently our process if there are
100 entries in the .TXT file takes about 6 unavoidable hours just due to the processing involved.
Can I get some pointers on how I can multi-thread this code so that if there are more than 4 entries
in the CODE_LIST1.TXT, I want to split it up into 4 execution threads - each picking one up 1 line.
If there are 100 lines, each of the parallel threads need to pick up 25 each. If there are 105 lines,
then, first 3 picks up 27 each and the last one picks up 24 lines to process.
Can this be done ?