My code has a large for loop that contains system(). I.e.
for(i=0;i<totalCycles;i++) { <some C code> //Bulk of the cpu time is taken up with the command below system(command_string); <some more C code> } This for loop can be easily parallelised insofar as an iteration does not depend on a previous iteration. Normally I would use MPI or openMP to parallelise the loop. However, I am not sure how to handle system(). There was a similar question here, but that was in the context of only parallelising system() only, as opposed to system() within a larger loop.