Simplest multithreading example

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Sep 1 11:03:40 PDT 2017


On 08/31/2017 10:27 PM, Brian wrote:

 > the 'real' problem is trying
 > to split a huge calculation to different threads.

I still think you can take advantage of std.parallelism:

   https://dlang.org/phobos/std_parallelism.html

Unfortunately, its features like asyncBuf, map, and amap do not stand 
out in the documentation. Here's my interpretation of them:

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

Ali



More information about the Digitalmars-d-learn mailing list