total_cpu()
← Back to Module multiprocess
Get the number of logical CPUs in the system
There are no parameters.
number
import multiprocess n = total_cpu()
Documentation version: 1.1.03. Updated on: 11 February 2026.Dinfio is designed and written by Muhammad Faruq Nuruddinsyah. Copyright © 2014-2026. All rights reserved.