Programmatically find the number of cores on a machine

前端 未结 19 2140
刺人心
刺人心 2020-11-22 16:38

Is there a way to determine how many cores a machine has from C/C++ in a platform-independent way? If no such thing exists, what about determining it per-platform (Windows/*

相关标签:
19条回答
  • 2020-11-22 17:36

    You probably won't be able to get it in a platform independent way. Windows you get number of processors.

    Win32 System Information

    0 讨论(0)
提交回复
热议问题