/** * Runs callable tasks each in separate threads. * * @param calls Callable tasks. * @param threadName Thread name. * @return Execution time in milliseconds. * @throws Exception If failed. */ public static long runMultiThreaded(Iterable<Callable<?>> calls, String threadName) throws Exception { return runMultiThreaded(calls, new GridTestSafeThreadFactory(threadName)); }
final GridTestSafeThreadFactory thrFactory = new GridTestSafeThreadFactory(threadName);
final GridTestSafeThreadFactory threadFactory = new GridTestSafeThreadFactory(threadName);