title: Mapping thread id from top to gdb
body: <p>I am using top to see the thread wise cpu usage using </p>
  
  <pre><code>  top -H -p `pgrep app.out`
  </code></pre>
  
  <p>It is showing some pid for each thread like </p>
  
  <pre><code>4015
  4016
  </code></pre>
  
  <p>I had attached gdb to the application using gdb attach command. 
  Now I want to switch to thread 4015 which is showing inside top o/p. </p>
  
  <p>How can I do that ?</p>
  
  <p>If I fire thread 4015 it is showing no thread . as I need to give thread id in gdb. </p>
  
  <p>So how can I map top thread id to gdb thread id ?</p>