An error on trying to sort shared data using slice
Ali Çehreli
acehreli at yahoo.com
Mon Jan 28 10:46:09 PST 2013
On 01/28/2013 07:01 AM, Sparsh Mittal wrote:
> However, I am trying to write a parallel program where I have a big
> array. Multiple (e.g. 2, 4, 8) threads do work on part of those arrays.
> Afterwards, they sort their portions of array and return the answer to
> main.
That sounds very much like parallelism. ;) Have you considered the
std.parallelism module?
http://dlang.org/phobos/std_parallelism.html
There are more examples of that module here:
http://ddili.org/ders/d.en/parallelism.html
Ali
More information about the Digitalmars-d-learn
mailing list