CPU Detection

sage.parallel.ncpus.ncpus()

Detects the number of effective CPUs in the system.

EXAMPLES:

sage: sage.parallel.ncpus.ncpus()  # random output -- depends on machine.
2