How can I get the CPU core number from within a user-space app (Linux, C)?

后端 未结 4 866
广开言路
广开言路 2020-11-30 07:51

Presumably there is a library or simple asm blob that can get me the number of the current CPU that I am executing on.

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