WOLFRAM

Kernels has been deprecated in favor of ParallelKernels.

Kernels[]

gives the list of running kernels available for parallel computing.

Details

  • On a multicore computer, kernels are normally launched automatically when needed for a parallel computation.
  • All available kernels are by default used for all parallel computations.

Examples

open allclose all

Basic Examples  (1)Summary of the most common use cases

The list of currently running parallel kernels:

Out[1]=1

Scope  (1)Survey of the scope of standard use cases

Launch the default set of kernels:

Out[1]=1

Give the list of currently running parallel kernels:

Out[2]=2

Close all running parallel kernels:

Out[3]=3

No kernels are running:

Out[4]=4

Generalizations & Extensions  (1)Generalized and extended use cases

Remember the list of running kernels:

Out[1]=1

Close all kernels:

Out[2]=2

Launch copies of the previously running kernels:

Out[3]=3

Properties & Relations  (2)Properties of the function, and connections to other functions

ParallelEvaluate by default does one evaluation on each kernel:

Out[1]=1
Out[2]=2

$KernelCount gives the number of running kernels:

Out[1]=1
Out[2]=2
Out[3]=3

Possible Issues  (1)Common pitfalls and unexpected behavior

If no kernels are available, most parallel calculations are done sequentially:

Out[1]=1
Out[2]=2
Wolfram Research (2008), Kernels, Wolfram Language function, https://reference.wolfram.com/language/ref/Kernels.html.
Wolfram Research (2008), Kernels, Wolfram Language function, https://reference.wolfram.com/language/ref/Kernels.html.

Text

Wolfram Research (2008), Kernels, Wolfram Language function, https://reference.wolfram.com/language/ref/Kernels.html.

Wolfram Research (2008), Kernels, Wolfram Language function, https://reference.wolfram.com/language/ref/Kernels.html.

CMS

Wolfram Language. 2008. "Kernels." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Kernels.html.

Wolfram Language. 2008. "Kernels." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Kernels.html.

APA

Wolfram Language. (2008). Kernels. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Kernels.html

Wolfram Language. (2008). Kernels. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Kernels.html

BibTeX

@misc{reference.wolfram_2024_kernels, author="Wolfram Research", title="{Kernels}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/Kernels.html}", note=[Accessed: 09-January-2025 ]}

@misc{reference.wolfram_2024_kernels, author="Wolfram Research", title="{Kernels}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/Kernels.html}", note=[Accessed: 09-January-2025 ]}

BibLaTeX

@online{reference.wolfram_2024_kernels, organization={Wolfram Research}, title={Kernels}, year={2008}, url={https://reference.wolfram.com/language/ref/Kernels.html}, note=[Accessed: 09-January-2025 ]}

@online{reference.wolfram_2024_kernels, organization={Wolfram Research}, title={Kernels}, year={2008}, url={https://reference.wolfram.com/language/ref/Kernels.html}, note=[Accessed: 09-January-2025 ]}