我想知道是否有可能识别具体的线程使用的物理处理器(核心)thread-id?
thread-id
例如,我有一个具有两(2)的螺纹(多线程应用程序thread-id = 10和thread-id = 20,例如).我在具有双核处理器(核心1和核心2)的系统上运行该应用程序.那么,我如何获得线程使用的核心号码thread-id = 20呢?
thread-id = 10
thread-id = 20
PS Windows平台.
谢谢,
丹尼斯.
windows multithreading processor affinity
affinity ×1
multithreading ×1
processor ×1
windows ×1