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 > UnsetShared >
Mathematica > Core Language > Tuning & Debugging > Parallel Computing > Resource Sharing in Parallel Computing > UnsetShared >

UnsetShared

UnsetShared
stops the sharing of the variables or functions among parallel kernels.
UnsetShared[patt]
stops the sharing of all variables and functions whose names match the string pattern patt.
  • UnsetShared stops sharing of all currently shared variables and functions.
Declare a shared variable:
All accesses are synchronized:
Stop sharing the variable:
The value on the master kernel remains:
The variables on the subkernels are no longer synchronized:
Stop sharing all variables and functions:
Declare a shared variable:
In[1]:=
Click for copyable input
All accesses are synchronized:
In[2]:=
Click for copyable input
Out[2]=
Stop sharing the variable:
In[3]:=
Click for copyable input
Out[3]=
The value on the master kernel remains:
In[4]:=
Click for copyable input
Out[4]=
The variables on the subkernels are no longer synchronized:
In[5]:=
Click for copyable input
Out[5]=
 
Stop sharing all variables and functions:
In[1]:=
Click for copyable input
Out[1]=
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF