Again, let be
addprocs(4) a=[1,2,3,4] b=zeros(4) @parallel for i=1:4 b[i]=a[i]^3 end b will be not changed (b=[0,0,0,0]). After running successfully the codes of my initial post, we resume @parallel for i=1:4 b[i]=a[i]^3 end Now we obtain the correct results !?! Further, in this Julia session, the @parallel for... end statements will give the expected result, regardless of the computation code. If we drop out the first setting (addprocs) then there is no problem, but I thing that the @parallel macro is ineffective, the computation is sequential on a multicore machine.
