using multiple threads from an executor service to calculate mark passing/candidate updates in parallel for multiple competitors

Change-Id: I1797eb7f927b4a497384bbc5347e3b41c2c8c9ee
This commit is contained in:
Axel Uhl committed 2016-05-13 15:47:27 +02:00
1 parent 72c0f33265
commit b58adebaad
4 files changed
+66 -21

No files matched your search

@@ -579,7 +579,8 @@ public class RacingEventServiceImpl implements RacingEventService, ClearStateTes
Executor simulatorExecutor = new ThreadPoolExecutor(/* corePoolSize */SIMULATION_THREAD_POOL_SIZE,
/* maximumPoolSize */SIMULATION_THREAD_POOL_SIZE,
/* keepAliveTime */60, TimeUnit.SECONDS,
/* workQueue */new LinkedBlockingQueue<Runnable>());
/* workQueue */new LinkedBlockingQueue<Runnable>(), new ThreadFactoryWithPriority(
Thread.NORM_PRIORITY, /* daemon */true));
// TODO: initialize smart-future-cache for simulation-results and add to simulation-service
simulationService = SimulationServiceFactory.INSTANCE.getService(simulatorExecutor, this);
this.raceLogReplicator = new RaceLogReplicator(this);