Supose I have two variables v[1]
and v[2]
. I used:
SetSharedVariable[{v[1], v[2]}]
Then, I used:
$SharedVariables
(*{}*)
It seems that in this way I can't share these two variables among the kernels. However, when I use:
SetSharedVariable[{a, b}]
and then:
$SharedVariables
{Hold[a], Hold[b]}
it's possible to share a
and b
.
Why can't I share v[1]
and v[2]
but it's possible to do it for a
and b
?
Comments
Post a Comment