Re: [LIP] Identifying the processor executing specific thread

Arun Sharma <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
On Thu, Nov 06, 2003 at 12:06:48AM -0500, tank, amit wrote:
> 
> Any clue about how could one identify that
> which of the underlying multiple processors 
> is executing any given thread on the system ?

parse /proc/pid/stat - one of the fields is the logical cpu.

	-Arun


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.