mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-22 20:13:52 +00:00
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:
1 parent
72c0f33265
commit
b58adebaad
4 files changed
+66
-21
No files matched your search
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user