[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-smp
Subject:    looking for a function
From:       "Xu Yang" <risingsunxy () googlemail ! com>
Date:       2008-09-16 12:54:42
Message-ID: ab40e9c0809160554j5a2a7612i3976a2b8e5316c16 () mail ! gmail ! com
[Download RAW message or body]

Hi guys,

I am looking for a function that can show me the current thread is
running on which cpu.

e.g I am using pthread to write a multithreaded program, in each
thread I would like to insert such kind of function so that I can know
on which cpu this thread is running on.

which function should be used?

thanks for the help!!

best regards,



Yang
--
To unsubscribe from this list: send the line "unsubscribe linux-smp" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic