title: Never ending Thread vs Task
body: <p>I have an application that polls some devices each x second,
  my implementation is based on one thread for each device.</p>
  
  <p>Each thread is implemented in this way</p>
  
  <pre><code>while(true){
      stopWatch.Start();
      //dowork
      stopWatch.Stop();
      time = (int)(delay - stopWatch.ElapsedMilliseconds);
      stopWatch.Reset();
      sleep(time);
  }
  </code></pre>
  
  <p>Now it's the correct way or i should implement a Timer that fire each x second and create a new Task?</p>
  
  <p>PS: each device has is polling code</p>