title: Best way to implement busy loop?
body: <p>What is the best way to implement the busy loop ? correct me if i am wrong ?</p>
  
  <pre><code>while (1); // obviously eats CPU. 
  while (1) { sleep(100); } // Not sure if it is the correct way ?
  </code></pre>