How to find out on which core a thread is running on?
2
votes
2
answers
4389
views
Let's say we have a CPU-intensive application called
multi-threaded-application.out
that is running on top of Ubuntu with a PID of 10000. It has 4 threads with tid 10001, 10002, 10003, and 10004. I want to know, at any given time, on which core each of these threads is being scheduled?
I tried /proc//tasks//status
, but I couldn't find any information regarding the core ID that is responsible for running the given thread.
This question is somehow related to this one .
Any help would be much appreciated.
Asked by Michel Gokan Khan
(133 rep)
Sep 5, 2020, 05:20 PM
Last activity: Jul 14, 2025, 06:02 PM
Last activity: Jul 14, 2025, 06:02 PM