Parallel reads on std.container.array.Array

Kagamin spam at here.lot
Fri Dec 8 10:01:14 UTC 2017


On Friday, 8 December 2017 at 07:34:53 UTC, Arun Chandrasekaran 
wrote:
> I was wondering if std.container.array.Array supports 
> threadsafe parallel reads similar to std::vector.

No, your code can also fail on a system with inconsistent cache 
because data written by writing thread can remain in its cache 
and not reach shared memory in time or reading threads can read 
from their stale cache.


More information about the Digitalmars-d-learn mailing list