AbortKernels
✖
AbortKernels
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)Summary of the most common use cases

https://wolfram.com/xid/0d6g1g25pg-bk3n80

Applications (2)Sample problems that can be solved with this function
Scheduled evaluations that are no longer needed can be aborted with AbortKernels:

https://wolfram.com/xid/0d6g1g25pg-b1zabm


https://wolfram.com/xid/0d6g1g25pg-njwgfp


https://wolfram.com/xid/0d6g1g25pg-bn7sed
Find such that
is prime, scheduling one search loop for each kernel:

https://wolfram.com/xid/0d6g1g25pg-ddeli7
Run them until manually aborted, and clean up by aborting all parallel kernels:

https://wolfram.com/xid/0d6g1g25pg-ix0zn8

Properties & Relations (2)Properties of the function, and connections to other functions
ParallelTry is essentially implemented in terms of WaitNext and AbortKernels:

https://wolfram.com/xid/0d6g1g25pg-c22dap

https://wolfram.com/xid/0d6g1g25pg-ferohc

If aborting fails, kernels can often be closed and reopened:

https://wolfram.com/xid/0d6g1g25pg-ir785b


https://wolfram.com/xid/0d6g1g25pg-cum294


https://wolfram.com/xid/0d6g1g25pg-buu73j

Wolfram Research (2008), AbortKernels, Wolfram Language function, https://reference.wolfram.com/language/ref/AbortKernels.html.
Text
Wolfram Research (2008), AbortKernels, Wolfram Language function, https://reference.wolfram.com/language/ref/AbortKernels.html.
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.
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
Wolfram Language. (2008). AbortKernels. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AbortKernels.html
BibTeX
@misc{reference.wolfram_2025_abortkernels, author="Wolfram Research", title="{AbortKernels}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/AbortKernels.html}", note=[Accessed: 01-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_abortkernels, organization={Wolfram Research}, title={AbortKernels}, year={2008}, url={https://reference.wolfram.com/language/ref/AbortKernels.html}, note=[Accessed: 01-April-2025
]}