type file; // Simulate encapsulating an app's parameters as a struct type params { int x; int y; float r; boolean b; string infilename; string outfilename; }; // Simulate an app myapp(params p, file infile, file outfile ) { app { db "pecho:" p.x p.y p.r p.b p.infilename p.outfilename @infile @outfile ; } } // Loop over the parameter array, calling app in parallel doall(params plist[]) { foreach pval,j in plist { // convert filename string to mapped file reference file infile ; file outfile ; // Call the application myapp(pval,infile, outfile); } } // Main params plist[]; plist = readdata("parameters"); doall(plist);