* How to identify the current processor
@ 2003-02-27 17:05 JF Larvoire
2003-02-27 17:38 ` Falk Hueffner
0 siblings, 1 reply; 2+ messages in thread
From: JF Larvoire @ 2003-02-27 17:05 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 193 bytes --]
Hello,
I need to identify the processor my thread is running on.
Under Tru64, this is easily done through system call cpu_get_current();.
How can this be done under Linux?
Jean-Fran�ois
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to identify the current processor
2003-02-27 17:05 How to identify the current processor JF Larvoire
@ 2003-02-27 17:38 ` Falk Hueffner
0 siblings, 0 replies; 2+ messages in thread
From: Falk Hueffner @ 2003-02-27 17:38 UTC (permalink / raw)
"JF Larvoire" <jean-francois.larvoire@remove_this.free.fr> writes:
> I need to identify the processor my thread is running on. Under
> Tru64, this is easily done through system call cpu_get_current();.
> How can this be done under Linux?
Read /proc/$PID/stat.
--
Falk
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-27 17:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-27 17:05 How to identify the current processor JF Larvoire
2003-02-27 17:38 ` Falk Hueffner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox