title: Alternative to multiple while(true) condition in same class in c#
body: <p>I am working with one application(C# Service), where I need some functionalities like below</p>
  
  <pre><code>Main()
      {
          App.A();
          App.B();    
      }
  App
      {
          static A()
          {
              While(true)
              {
                  // Thread logic comes here
                  Thread.Sleep(60000)
              }
          }
  
          static B()
          {
              While(true)
              {
                  // Thread logic comes here
                  Thread.Sleep(1000)
              }
          }
      }
  </code></pre>
  
  <ol>
  <li>I need to execute 2 different thread logics in one class</li>
  <li>Both is required with different sleep time</li>
  </ol>
  
  <p>How to keep running both the functionalities in this case ? Suggest me any alternative to achieve the same.</p>
  
  <p>Thanks in advance :-) </p>