({{, (RefLink[KernelObject, paclet:ref/KernelObject])[n,name,…] 
represents a kernel available for parallel computing.}})

OpenersNotesSection(Spacer1)Details

Kernel objects represent running kernels on a local or remote computer system.

Kernel objects are created with (RefLink[LaunchKernels, paclet:ref/LaunchKernels]) and terminated with (RefLink[CloseKernels, paclet:ref/CloseKernels]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (5)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Kernels[]

OpenersExampleSection2(Spacer1)Applications  (2)

Close all kernels:

CloseKernels[]

Launch copies of the previously running kernels:

LaunchKernels[%]

Kernels[]

Close a particular kernel:

CloseKernels[Last[%]]

Kernels[]

OpenersExampleSection3(Spacer1)Properties & Relations  (1)

The output form of a kernel object indicates its (RefLink[$KernelID, paclet:ref/$KernelID]):

Kernels[]

ParallelEvaluate[$KernelID,Kernels[]]

OpenersExampleSection4(Spacer1)Possible Issues  (1)

Kernel ID values are not necessarily contiguous:

CloseKernels[Last[Kernels[]]]

LaunchKernels[1]

ParallelEvaluate[$KernelID]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[LaunchKernels, paclet:ref/LaunchKernels])  ▪  (RefLink[CloseKernels, paclet:ref/CloseKernels])  ▪  (RefLink[AbortKernels, paclet:ref/AbortKernels])  ▪  (RefLink[Kernels, paclet:ref/Kernels])  ▪  (RefLink[$KernelCount, paclet:ref/$KernelCount])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Managing Remote and Parallel Kernels, paclet:guide/ManagingRemoteAndParallelKernels])}})}})