CloseKernels
✖
CloseKernels
Details

- Kernels can be specified either using KernelObject, as returned by Kernels[], or using their integer IDs, as returned by $KernelID.
- The following properties can be used to select a subset of all running kernels:
-
All all kernels "CloudKernels" all cloud kernels "LinkKernels" all link kernels "LocalKernels" all kernels running locally "LWGKernels" all LightweightGrid kernels "OneKernelPerMachine" one kernel for each different machine "RemoteKernels" all kernels on remote machines "SshKernels" all SSH kernels "WSTPServerKernels" all WSTPServer kernels - Closed kernels are removed from the list of kernels available for parallel computing, as given by ParallelKernels[].
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (3)Survey of the scope of standard use cases
Close any parallel kernels that may be running and launch the default kernels:

https://wolfram.com/xid/0b8cry1iuc-dkog2e


https://wolfram.com/xid/0b8cry1iuc-bpsymj

Launch copies of the previously running kernels:

https://wolfram.com/xid/0b8cry1iuc-niwbss

Launch kernels of various types:

https://wolfram.com/xid/0b8cry1iuc-35v13h


https://wolfram.com/xid/0b8cry1iuc-f7hamd


https://wolfram.com/xid/0b8cry1iuc-tgmqqw


https://wolfram.com/xid/0b8cry1iuc-v5oslg

Applications (1)Sample problems that can be solved with this function
Properties & Relations (1)Properties of the function, and connections to other functions
Distributed definitions and shared variables apply to running kernels and new ones:

https://wolfram.com/xid/0b8cry1iuc-7g8x1

https://wolfram.com/xid/0b8cry1iuc-naqc23

Packages read with ParallelNeeds also apply to running and new kernels:

https://wolfram.com/xid/0b8cry1iuc-ef9rv
Close all running kernels and launch new ones:

https://wolfram.com/xid/0b8cry1iuc-f1oma

The new kernels inherit previously distributed definitions and shared variables:

https://wolfram.com/xid/0b8cry1iuc-bc5k33

The new kernels also inherit packages read previously:

https://wolfram.com/xid/0b8cry1iuc-kzrk77

Wolfram Research (2008), CloseKernels, Wolfram Language function, https://reference.wolfram.com/language/ref/CloseKernels.html.
Text
Wolfram Research (2008), CloseKernels, Wolfram Language function, https://reference.wolfram.com/language/ref/CloseKernels.html.
Wolfram Research (2008), CloseKernels, Wolfram Language function, https://reference.wolfram.com/language/ref/CloseKernels.html.
CMS
Wolfram Language. 2008. "CloseKernels." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CloseKernels.html.
Wolfram Language. 2008. "CloseKernels." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CloseKernels.html.
APA
Wolfram Language. (2008). CloseKernels. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CloseKernels.html
Wolfram Language. (2008). CloseKernels. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CloseKernels.html
BibTeX
@misc{reference.wolfram_2025_closekernels, author="Wolfram Research", title="{CloseKernels}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/CloseKernels.html}", note=[Accessed: 24-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_closekernels, organization={Wolfram Research}, title={CloseKernels}, year={2008}, url={https://reference.wolfram.com/language/ref/CloseKernels.html}, note=[Accessed: 24-March-2025
]}