On which processor does a thread run?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christoph

    On which processor does a thread run?

    Hi, I hope you can help me:

    I'd like to determine the processor on which a specified thread is running.


    THX,
    Christoph
  • Peter van Merkerk

    #2
    Re: On which processor does a thread run?

    > I'd like to determine the processor on which a specified thread is
    running.

    Standard C++ has no support for multithreading and consequently no
    functions to tell you on which processor the thread is running. You will
    need platform specific functions (which are beyond the scope of this
    newsgroup) to figure this out.

    See also:
    http://www.slack.net/~shiva/welcome.txt and


    --
    Peter van Merkerk
    peter.van.merke rk(at)dse.nl


    Comment

    Working...