title: Multiple threads causing more CPU usage
body: <p>For the code below my cpu usage is 97%.  I am running c code on Ubuntu.  </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include&lt;pthread.h&gt;
  void *s_thread(void *x)
  {
          printf("I am in first thread\n");
  } 
  void *f_thread(void *x)    
  {
          printf("I am in second thread\n");
  }
  
  int main()
  {
          printf("I am in main\n");
          pthread_t fth;
          int ret;
          ret = pthread_create( &amp;fth,NULL,f_thread,NULL);
          ret = pthread_create( &amp;sth,NULL,s_thread,NULL); 
          while(1);
          return 0;
  }        
  </code></pre>
  
  <p>This simple code is giving me more cpu usage than running only one thread.                                                                                                   </p>