Kernels

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)

The list of currently running parallel kernels:

Scope  (1)

Launch the default set of kernels:

Give the list of currently running parallel kernels:

Close all running parallel kernels:

No kernels are running:

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  (1)

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

Introduced in 2008
 (7.0)