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:

Wolfram Research (2008), UnsetShared, Wolfram Language function, https://reference.wolfram.com/language/ref/UnsetShared.html.

Text

Wolfram Research (2008), UnsetShared, Wolfram Language function, https://reference.wolfram.com/language/ref/UnsetShared.html.

BibTeX

@misc{reference.wolfram_2021_unsetshared, author="Wolfram Research", title="{UnsetShared}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/UnsetShared.html}", note=[Accessed: 27-September-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_unsetshared, organization={Wolfram Research}, title={UnsetShared}, year={2008}, url={https://reference.wolfram.com/language/ref/UnsetShared.html}, note=[Accessed: 27-September-2021 ]}

CMS

Wolfram Language. 2008. "UnsetShared." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/UnsetShared.html.

APA

Wolfram Language. (2008). UnsetShared. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/UnsetShared.html