ps (version 1.7.6)

ps_cpu_count: 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)

Value

Integer scalar.

Arguments

logical

Whether to count logical CPUs.

Examples

Run this code
ps_cpu_count(logical = TRUE)
ps_cpu_count(logical = FALSE)

Run the code above in your browser using DataLab