({{, (RefLink[$SharedVariables, paclet:ref/$SharedVariables]) 
is the list of variables currently being shared among parallel kernels.}})

OpenersNotesSection(Spacer1)Details

(RefLink[$SharedVariables, paclet:ref/$SharedVariables]) is changed using (RefLink[SetSharedVariable, paclet:ref/SetSharedVariable]) and (RefLink[UnsetShared, paclet:ref/UnsetShared]).

The elements of (RefLink[$SharedVariables, paclet:ref/$SharedVariables]) are symbols wrapped in (RefLink[Hold, paclet:ref/Hold]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Share a variable:

SetSharedVariable[xs]

$SharedVariables

Stop sharing the variable:

UnsetShared[xs]

$SharedVariables

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[SetSharedVariable, paclet:ref/SetSharedVariable])  ▪  (RefLink[UnsetShared, paclet:ref/UnsetShared])  ▪  (RefLink[SetSharedFunction, paclet:ref/SetSharedFunction])  ▪  (RefLink[DistributeDefinitions, paclet:ref/DistributeDefinitions])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Resource Sharing in Parallel Computing, paclet:guide/ResourceSharingInParallelComputing])}, {▪(RefLinkPlain[Parallel Computing, paclet:guide/ParallelComputing])}, {▪(RefLinkPlain[Parallel Computation Setup & Configuration, paclet:guide/ParallelComputationSetupAndConfiguration])}})}})