parallel threads stalls until all thread batches are finished.

Ali Çehreli acehreli at yahoo.com
Mon Aug 28 22:43:56 UTC 2023


On 8/28/23 15:37, Joe at bloow.edu wrote:

 > Basically everything is hard coded to use totalCPU's

parallel() is a function that dispatches to a default TaskPool object, 
which uses totalCPUs. It's convenient but as you say, not all problems 
should use it.

In such cases, you would create your own TaskPool object and call 
.parallel on it:

   https://youtu.be/dRORNQIB2wA?t=1611s

Ali



More information about the Digitalmars-d-learn mailing list