gives the list of running kernels available for parallel computing.


gives those running kernels that satisfy the given property.


  • 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.
  • The following properties can be used to select a subset of all running kernels:
  • Allall kernels
    "CloudKernels"all cloud 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


open allclose all

Basic Examples  (1)

The list of currently running parallel kernels:

Scope  (5)

Launch the default set of kernels:

Give the list of currently running parallel kernels:

Close all running parallel kernels:

No kernels are running:

Launch kernels on various machines:

Select one kernel for each machine:

Run an evaluation on this subset of kernels:

Select all kernels of a particular type:

Select all nonlocal kernels:

Generalizations & Extensions  (1)

Remember the list of running kernels:

Close all kernels:

Launch copies of the previously running kernels:

Properties & Relations  (2)

ParallelEvaluate by default does one evaluation on each kernel:

$KernelCount gives the number of running kernels:

Possible Issues  (3)

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

A kernel launched as a remote kernel, but on the local machine, is treated as remote:

Earlier versions of the Wolfram Language provided this functionality under the name Kernels:

Neat Examples  (1)

Given multiple running kernels on many different machines:

Load a resource function into the cache on each machine only once:

Use the resource function in all kernels:

Wolfram Research (2022), ParallelKernels, Wolfram Language function, (updated 2022).


Wolfram Research (2022), ParallelKernels, Wolfram Language function, (updated 2022).


Wolfram Language. 2022. "ParallelKernels." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022.


Wolfram Language. (2022). ParallelKernels. Wolfram Language & System Documentation Center. Retrieved from


@misc{reference.wolfram_2024_parallelkernels, author="Wolfram Research", title="{ParallelKernels}", year="2022", howpublished="\url{}", note=[Accessed: 15-July-2024 ]}


@online{reference.wolfram_2024_parallelkernels, organization={Wolfram Research}, title={ParallelKernels}, year={2022}, url={}, note=[Accessed: 15-July-2024 ]}