[ Version ( since = "2.36" ) ]
public uint get_num_processors ()
Determine the approximate number of threads that the system will schedule simultaneously for this process.
This is intended to be used as a parameter to ThreadPool.with_owned_data for CPU bound tasks and similar cases.
On platforms where enough information is known, this will be the number of high performance cores and will not include low power ‘efficiency’ cores. Use platform specific APIs to query for low power cores if needed.
|
Number of schedulable threads, always greater than 0 |