Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Systems Interfaces & Deployment > Parallel Computing > Resource Sharing in Parallel Computing >
Mathematica > Core Language > Tuning & Debugging > Parallel Computing > Resource Sharing in Parallel Computing >

SetSharedVariable

SetSharedVariable[s1, s2, ...]
declares the symbols si as shared variables whose values are synchronized among all parallel kernels.
  • The unique value of a shared variable is maintained by the master kernel and every access on a parallel subkernel is synchronized through the master kernel.
  • Shared variables without a value evaluate to Null.
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team