Using @distributed for loop

Hi, your problem is very similar to another recent thread where I explained the issue:

So yes a SharedArray is a valid answer, if all processes live on the same physical machine. However if that is the case, do you have a reason to use processes instead of threads? Threads have generally less overhead and are easier to work with (e.g. your code example would’ve just worked).