title: Threading - why do we do use while(true) while waiting
body: <p>In most of the threading examples in Java, there is common use of a while(true) block like this:</p>
  
  <pre><code>while(true) {
   try {
    wait() 
   } catch (Exception ex) {
     /*do  something*/ 
   }
  }
  </code></pre>
  
  <p>What is the purpose of using while (true) ? Under what kind of scenarios are they particularly useful? 
  Client/Server communications?</p>
  
  <p>Thanks,<br>
  - Ivar</p>