Re: get current core id

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



fozzie <david_aiken@xxxxxxxxx> writes:

> Does anyone know if it is possible to get the ID of the core which is
> executing code at a given point in a C++ program? I'm running code built
> using gcc 4.4.1 on Ubuntu Koala 64-bit with an Intel core 2 quad and would
> like to see whether external code calling a function in a shared library is
> making use of multiple cores.

This isn't a gcc question.  The compiler doesn't know anything about
different cores.  I say this not to chastise you, but to let you know
that you are more likely to get the answer if you ask on a more
appropriate forum.  The answer may be operating system specific.

I don't know the answer myself.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux