PlantandFoodResearch / MCHap

Polyploid micro-haplotype assembly using Markov chain Monte Carlo simulation.
MIT License
18 stars 3 forks source link

Add 1 to specified cores number when making thread pool #150

Closed timothymillar closed 10 months ago

timothymillar commented 1 year ago

When using multiple cores an additional thread is created to collect and write the output. This means with --cores 2 only one of the cores will be running the assembly and one will essentially be idling waiting for output to write. This probably doesn't fit user expectations so the thread pool should be created with an additional thread. That way --cores 2 corresponds to two high cpu threads.

timothymillar commented 10 months ago

Fixed in #169