title: Busy waiting in C#
body: <p>How do you implement busy waiting in a not total inefficient way? I am facing the issue that I can load the data of my model only in a pull manner, which means I have to invoke getXYZ() methods in a continuous way.</p>
  
  <p>This has to happen not fast enough for user interaction, but fast enought, that when a state in the GUI is changed, the model can be noticed and the new state is received by the getXYZ() methods.</p>
  
  <p>My approach simply be:</p>
  
  <pre><code>while (c.hasChanged()) {
     Thread.sleep(500);
  }
  updateData();
  </code></pre>
  
  <p>Are there better mechanisms?</p>