Error running concurrent process and storing results in array

Ali Çehreli acehreli at yahoo.com
Wed May 6 03:56:04 UTC 2020


On 5/5/20 8:41 PM, data pulverizer wrote:> On Wednesday, 6 May 2020 at 
03:33:12 UTC, Mathias LANG wrote:
 >> On Wednesday, 6 May 2020 at 03:25:41 UTC, data pulverizer wrote:

 > Is there something I need to do to wait for each thread to finish
 > computation?

thread_joinAll(). I have an example here:

   http://ddili.org/ders/d.en/concurrency.html#ix_concurrency.thread_joinAll

Although I understand that you're experimenting with std.concurrency, I 
want to point out that there is also std.parallelism, which may be 
better suited in many cases. Again, here are some examples:

   http://ddili.org/ders/d.en/parallelism.html

Ali



More information about the Digitalmars-d-learn mailing list