阅读背景:

如何查看线程正在运行的哪个CPU内核?

来源:互联网 

In Linux, supposing a thread's pid is [pid], from the directory /proc/[pid] we can get many useful information. For example, these proc files, /proc/[pid]/status,/proc/[pid]/stat and /proc/[pid]/schedstat are all useful. But how can I get the CPU core number that a thread is running in? If a thread is in sleep state, how can I know which core it will run after it is scheduled again?In Linux, supposing a thread's pid is [pid], fr




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: