title: How can I run twice a function at the same time from one class? C#
body: <p>When run conflict between class variables!</p>
  
  <pre><code>private myClass[] arrayms = new myClass[5];
  
  foreach (myClass ms in arrayms) {
    if (ms.ScheduleState)
      Task.Factory.StartNew(() =&gt; ms.Start());
  }
  </code></pre>