getnproc - Determines the numbers of CPU cores available

Description

Determines the numbers of CPU cores available

Usage

getnproc()

Value

The number of cores available. Returns 1 if undeterminable.

Examples

getnproc()
[1] 4