Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Add API to determine number of physical CPU cores #2458

Closed
AspNetSmurfLab opened this issue Aug 11, 2015 · 1 comment
Closed

Add API to determine number of physical CPU cores #2458

AspNetSmurfLab opened this issue Aug 11, 2015 · 1 comment
Milestone

Comments

@AspNetSmurfLab
Copy link

Environment.ProcessorCount returns the number of virtual CPU cores, which on machines with HyperThreading is twice the actual number of physical cores. Some work is better suited to matching the number of physical cores (e.g. network IO) but there is currently no API to get this information.

Suggest we do something like IRuntimeEnvironment.PhysicalProcessorCount.

@moozzyk
Copy link
Contributor

moozzyk commented Aug 11, 2015

#1970/#2063

@glennc glennc added this to the 1.0.0 backlog milestone Aug 13, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants