On Sat, Apr 16, 2016 at 5:35 PM, digxx <[email protected]> wrote:
> Sry, I accidentally sent my post.
> So the above version seems to run berserker
> if i put an @sync infront of @parallel it seems to work, but does it really?

It's not vary clear from your code above what you want to do although
there's a few things that I can say,

1. I don't think SharedArray have any automatic
locking/synchronization scheme (since it will be very expensive).
2. You need @sync in front @parallel is necessary if you want to wait
for the loop to finish. This is documented in the doc for parallel and
sync.

Reply via email to