Mathematica 9 is now available
Previous section-----Next section

Clearing Kernels

Between different parallel computations, you may want to make sure that all remote kernels delete any variable definitions that may have been set. Rather than terminating and restarting all kernels, you can use ClearSlaves.
ClearSlaves[]clears all variables in the remote kernel's Global` context and forgets any shared variables and exported environments

Clearing definitions.

Definitions for symbols in contexts other than Global` are not cleared.
Any definitions of global symbols exported with ExportEnvironment will become unavailable. Any shared global variables will become unshared.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.