What core is a given thread running on?

后端 未结 4 799
面向向阳花
面向向阳花 2021-01-06 10:21

Is there a function or any other way to know, programatically, what core of what processor a given thread of my program (pid) is running on? Both OpenMP or Pthreads solution

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