As you may know, in Linux, each CPU core has its own run queue. How can I get the number of threads currently running on each core in Linux (Ubuntu)?
As you may know, in Linux, each CPU core has its own run queue.
As I may know... this depends on some kernel tuneables. And generally untrue between siblings.
Anyway, I think that
/proc/stat can give an answer to your question,
man proc for an accurate definition of the fields.
You may need to fiddle some script to get the number of currently running as if I recall, stat keeps data since boottime.