首页 > 解决方案 > Get the ID of the currently executing CPU on M1

问题描述

Is there a way to get a unique ID for the core that is executing the current thread?

On OSX x86, the cpuid CPU instruction could be used but that doesn't work on Apple Silicon like the M1 which is based on ARMv8.

标签: multithreadingmacosapple-m1

解决方案


推荐阅读