title: run two threads simultaneously with different sleep times
body: <p>I have a situation to run thread1 every minute and thread2 every hour. How can i do this.</p>
  
  <p>currently I have a working code to run thread1 after every minute.</p>
  
  <p>main method</p>
  
  <pre><code>    static void main(string args[]){
        orderListner thread1 = new orderListner();
        thread1.start();
      }
  </code></pre>
  
  <p>thread1</p>
  
  <pre><code>    public static void orderListner extends thread{
        public void run(){
          while(true){
            process();
            thread.sleep(60000);
          }
        }
      }
  </code></pre>
  
  <p>Now I need to start new thread for results which runs after every hour. how I can implement this simultaneously(thread1 will continously run thread2 should start every hour)</p>