How to get the number of CPUs in Linux using C?

后端 未结 8 1682
情歌与酒
情歌与酒 2020-11-29 20:17

Is there an API to get the number of CPUs available in Linux? I mean, without using /proc/cpuinfo or any other sys-node file...

I\'ve found this implementation using

8条回答
提交回复
热议问题