All of lore.kernel.org
 help / color / mirror / Atom feed
* looking for a function
@ 2008-09-16 12:50 Xu Yang
  2008-09-16 14:00 ` Bernd Petrovitsch
  0 siblings, 1 reply; 13+ messages in thread
From: Xu Yang @ 2008-09-16 12:50 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 13+ messages in thread
* looking for a function
@ 2008-09-16 13:26 Xu Yang
  2008-09-16 14:03 ` Steve Graegert
       [not found] ` <6a00c8d50809160701v2cf11b93ta86c30398cfe2e6b@mail.gmail.com>
  0 siblings, 2 replies; 13+ messages in thread
From: Xu Yang @ 2008-09-16 13:26 UTC (permalink / raw)
  To: linux-c-programming

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

^ permalink raw reply	[flat|nested] 13+ messages in thread
* looking for a function
@ 2008-09-16 12:54 Xu Yang
  0 siblings, 0 replies; 13+ messages in thread
From: Xu Yang @ 2008-09-16 12:54 UTC (permalink / raw)
  To: linux-smp

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

^ permalink raw reply	[flat|nested] 13+ messages in thread
* looking for a function
@ 2008-09-16 12:34 Xu Yang
  0 siblings, 0 replies; 13+ messages in thread
From: Xu Yang @ 2008-09-16 12:34 UTC (permalink / raw)
  To: linux-smp

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-09-16 19:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-16 12:50 looking for a function Xu Yang
2008-09-16 14:00 ` Bernd Petrovitsch
2008-09-16 14:11   ` Xu Yang
2008-09-16 14:18     ` Arjan van de Ven
2008-09-16 14:32       ` Xu Yang
2008-09-16 14:29     ` Frédéric Weisbecker
2008-09-16 14:33       ` Xu Yang
2008-09-16 19:04     ` Chris Snook
  -- strict thread matches above, loose matches on Subject: below --
2008-09-16 13:26 Xu Yang
2008-09-16 14:03 ` Steve Graegert
     [not found] ` <6a00c8d50809160701v2cf11b93ta86c30398cfe2e6b@mail.gmail.com>
2008-09-16 14:14   ` Xu Yang
2008-09-16 12:54 Xu Yang
2008-09-16 12:34 Xu Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.