ps_cpu_count: Number of logical or physical CPUs

View source: R/system.R

ps_cpu_countR Documentation

Number of logical or physical CPUs

Description

If cannot be determined, it returns NA. It also returns NA on older Windows systems, e.g. Vista or older and Windows Server 2008 or older.

Usage

ps_cpu_count(logical = TRUE)

Arguments

logical

Whether to count logical CPUs.

Value

Integer scalar.

Examples


ps_cpu_count(logical = TRUE)
ps_cpu_count(logical = FALSE)


ps documentation built on April 19, 2023, 1:08 a.m.