UnsetShared

UnsetShared[s1,s2,]

stops the sharing of the variables or functions si among parallel kernels.

UnsetShared[patt]

stops the sharing of all variables and functions whose names match the string pattern patt.

Details

  • UnsetShared["*"] stops sharing of all currently shared variables and functions.

Examples

Basic Examples  (2)

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:

Introduced in 2008
 (7.0)