hdbeukel / james-core

Core module of the JAMES framework
Apache License 2.0
6 stars 5 forks source link

Support single-threaded execution in parallel searches #25

Open hdbeukel opened 9 years ago

hdbeukel commented 9 years ago

Using parallel searches requires thread-safe components (objective, neighbourhood, etc.). For some applications this may not be easily or efficiently achieved, in which case the benefits of multi-threading may be lost.

Solution: add option for single-threaded execution in parallel searches. This currently applies to:

For each of these, an option disableMultiThreading() will be provided. With this setting, all spawned sub-searches are executed on the same thread.