/*
 * Java Genetic Algorithm Library (@__identifier__@).
 * Copyright (c) @__year__@ Franz Wilhelmstötter
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Author:
 *    Franz Wilhelmstötter (franz.wilhelmstoetter@gmx.at)
 */
package org.jenetics.util;

import java.util.concurrent.Executor;

/**
 * @author <a href="mailto:franz.wilhelmstoetter@gmx.at">Franz Wilhelmstötter</a>
 * @since @__version__@
 * @version @__version__@ &mdash; <em>$Date: 2013-10-06 $</em>
 */
public class Concurrent implements Executor, AutoCloseable {


	@Override
	public void execute(final Runnable command) {
	}

	@Override
	public void close() {
	}

}

@@ -783,365 +783,1176 @@
 til.
-concurrent.Executor;%0A%0A/**%0A * @author %3Ca href=%22mailto:franz.wilhelmstoetter@gmx.at%22%3EFranz Wilhelmst%C3%B6tter%3C/a%3E%0A * @since @__version__@%0A * @version @__version__@ &mdash; %3Cem%3E$Date: 2013-10-06 $%3C/em%3E%0A */%0Apublic class Concurrent implements Executor, AutoCloseable %7B%0A%0A%0A%09@Override%0A%09public void execute(final Runnable command) %7B%0A%09%7D%0A%0A%09@Override%0A%09public void close() %7B
+ArrayList;%0Aimport java.util.List;%0Aimport java.util.concurrent.Executor;%0Aimport java.util.concurrent.ForkJoinPool;%0Aimport java.util.concurrent.ForkJoinTask;%0A%0A/**%0A * %5Bcode%5D%0A * try (Concurrent c = new Concurrent()) %7B%0A *     c.execute(task1);%0A *     c.execute(task2);%0A * %7D%0A * %5B/code%5D%0A *%0A * @author %3Ca href=%22mailto:franz.wilhelmstoetter@gmx.at%22%3EFranz Wilhelmst%C3%B6tter%3C/a%3E%0A * @since @__version__@%0A * @version @__version__@ &mdash; %3Cem%3E$Date: 2013-10-06 $%3C/em%3E%0A */%0Apublic class Concurrent implements Executor, AutoCloseable %7B%0A%0A%09private final int TASKS_SIZE = 15;%0A%0A%09private static ForkJoinPool _POOL = new ForkJoinPool(%0A%09%09Math.max(Runtime.getRuntime().availableProcessors() - 1, 1)%0A%09);%0A%0A%09public static void setForkJoinPool(final ForkJoinPool pool) %7B%0A%09%09_POOL = pool;%0A%09%7D%0A%0A%09public static ForkJoinPool getForkJoinPool() %7B%0A%09%09return _POOL;%0A%09%7D%0A%0A%09private final List%3CForkJoinTask%3C?%3E%3E _tasks = new ArrayList%3C%3E(TASKS_SIZE);%0A%0A%09@Override%0A%09public void execute(final Runnable command) %7B%0A%09%09final ForkJoinTask%3C?%3E task = ForkJoinTask.adapt(command);%0A%09%09_POOL.execute(task);%0A%09%09_tasks.add(task);%0A%09%7D%0A%0A%09@Override%0A%09public void close() %7B%0A%09%09for (final ForkJoinTask%3C?%3E task : _tasks) %7B%0A%09%09%09task.join();%0A%09%09%7D
 %0A%09%7D%0A

Implement 'Concurrent' class.