title: C# execute a background thread every number of seconds (scheduled)
body: <p>I just started learning C#, I am a Java programmer. In Java I am able to do the following:</p>
  <pre><code>    int corePoolSize = 1;
      long initialDelay = 0;//0 seconds
      long delay = 60;//60 seconds
      ScheduledThreadPoolExecutor stpe = new ScheduledThreadPoolExecutor(corePoolSize);
      stpe.scheduleWithFixedDelay(new MyDemoClass(), initialDelay, delay, TimeUnit.SECONDS);
  </code></pre>
  <p>which would execute the Runnable &quot;MyDemoClass&quot; in a background thread every 60 seconds.</p>
  <p>How would I do this in C#? I have looked at its ThreadPool <a href="http://msdn.microsoft.com/en-us/library/3dasc8as%28v=vs.80%29.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/3dasc8as(v=vs.80).aspx</a>, but it seems to be not what I am looking for.</p>
  <p>Thank you very much</p>