Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What core is running my process?

I am currently taking a parallel programming class and our first programming exercise was to create four threads that displayed a "hello world" kinda of message. I would like to know what cores are running the threads. I have tried using the TOP command on Unix to display all processes and I do see the 5 different threads, but not sure how to see what cores are running each thread.

like image 783
Jose Vega Avatar asked Mar 24 '26 15:03

Jose Vega


1 Answers

Field j of top, P, shows you which core the thread/process last ran on.

like image 57
Ignacio Vazquez-Abrams Avatar answered Mar 27 '26 11:03

Ignacio Vazquez-Abrams