.setTasksPerMeasurement(8)
.build();
int threads = Runtime.getRuntime().availableProcessors();
ProgressPanel panel = new ProgressPanel();
JFrame frame = new JFrame();
frame.add(panel);
frame.pack();
frame.setVisible(true);
File base = new File("C:\\Users\\Brad\\My Documents\\jmist");
UUID id = UUID.randomUUID();
File dir = new File(base, id.toString());
Runnable runner = new ParallelizableJobRunner(job, dir, Executors.newFixedThreadPool(threads, new BackgroundThreadFactory()), threads, panel, panel.createProgressMonitor("Rendering Cornell Box"));//Runtime.getRuntime().availableProcessors());
runner.run();
}