AbortKernels
aborts evaluations running in all parallel subkernels.
Details
- AbortKernels[] attempts to put subkernels in a state suitable for new evaluations and verifies communications links to them. Any subkernel that does not respond is removed from the list of available subkernels as given by Kernels[].
Examples
open allclose allBasic Examples (1)
Applications (2)
Scheduled evaluations that are no longer needed can be aborted with AbortKernels:
Find such that is prime, scheduling one search loop for each kernel:
Run them until manually aborted, and clean up by aborting all parallel kernels:
Properties & Relations (2)
ParallelTry is essentially implemented in terms of WaitNext and AbortKernels:
If aborting fails, kernels can often be closed and reopened:
Text
Wolfram Research (2008), AbortKernels, Wolfram Language function, https://reference.wolfram.com/language/ref/AbortKernels.html.
CMS
Wolfram Language. 2008. "AbortKernels." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AbortKernels.html.
APA
Wolfram Language. (2008). AbortKernels. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AbortKernels.html