ExecutorService exec = Executors.newFixedThreadPool(64);
final int len = tests.length;
final AtomicInteger counter = new AtomicInteger(0);
try {
for(int i = 0; i < len; i++) {
exec.execute(new Runnable() {
public void run() {
int nth = counter.getAndIncrement();
String testfilename = tests[nth];
String test = FileUtils.basename(testfilename) + "#" + nth;
//String[] args = new String[] { "-q", testfilename, "-o", OUTPUT_DEST + test };