For some reason I can't see this class.

https://github.com/OpenHFT/Java-Chronicle/tree/master/chronicle-sandbox/src/test/java/net/openhft/chronicle/sandbox



On 26 March 2014 08:05, Peter Veentjer <notifications@github.com> wrote:

> In
> chronicle-sandbox/src/test/java/net/openhft/chronicle/sandbox/TaskExecutionUtil.java:
>
> > +import java.util.concurrent.Callable;
> > +
> > +public class TaskExecutionUtil {
> > +
> > +    /**
> > +     * Execute specified tasks in independent threads.
> > +     */
> > +    public static void executeConcurrentTasks(final List<? extends Callable<Void>> tasks, final long taskTimeoutMillis) {
> > +
> > +        // Create and start a thread per task
> > +        final List<TaskRunner> taskRunners = new ArrayList<TaskRunner>();
> > +        final List<Thread> threads = new ArrayList<Thread>();
> > +        for (Callable<Void> task : tasks) {
> > +            final TaskRunner taskRunner = new TaskRunner(task);
> > +            taskRunners.add(taskRunner);
> > +            final Thread thread = new Thread(taskRunner, task.toString());
>
> Can uncontrolled thread creation not lead to problems? I love creating
> threads, and If I see a good reason not to use e.g. Executor, I'm certainly
> not too afraid of creating one myself. But in this case, it could lead to
> an uncontrolled number of threads being created
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/OpenHFT/Java-Chronicle/pull/55/files#r10967028>
> .
>