title: How to know on which physical processor and on which physical core my code is running
body: <p>How can I know in a C program, on which physical processor and core my code is running? 
  I'm using Linux and gcc 4.4.3.</p>