This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

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