How can I see which CPU core a thread is running in?

前端 未结 7 1221
悲&欢浪女
悲&欢浪女 2020-12-07 14:09

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

相关标签:
7条回答
  • You can also use ps, something like this:

    ps -mo pid,tid,%cpu,psr -p `pgrep BINARY-NAME`
    
    0 讨论(0)
提交回复
热议问题