husonlab / splitstree6

SplitsTree App
GNU General Public License v3.0
85 stars 5 forks source link

Configure max threads/logical processors available to SplitsTree #15

Closed JGLAHE closed 1 month ago

JGLAHE commented 10 months ago

Like with the memory, it would be good if the user could nominate the maximum number of logical processors available to SplitsTree in the installer dialogue. Even better if this could be configured within the running application, although I've no idea how difficult that would be to achieve... Cheers

husonlab commented 1 month ago

If you launch the program from the command line, then you can pass -t number-of-threads to specify how many threads any one algorithm may use during computations. However, you run two algorithms in parallel, then both will get the given number of threads. Also, Java itself uses multiple threads for different tasks and these are not limited by the option. However, the latest version of Java supports "virtual threads" and this may allow the program to specify the maximum number of actual threads to use. I will look into this.

lccra commented 1 month ago

Sorry if this is slightly off-topic (in a closed issue), but does calling SplitsTree from the command line in Linux assume (and require) access to a GUI, or is it purely a cli? Cheers