title: Java: How to open the execution of new Thread in separate command window from Main Thread?
body: <p>I want to start the execution of new Thread in separate command window without affecting the execution of main Thread.</p>
  
  <p>I have something like this:</p>
  
  <pre><code>public static void main(String args[]){
    NewThread n = new NewThread();
    Thread t = new Thread(n);
    t.start(); //Here I want to display the execution of t in separate command prompt.
  
  }
  
  class NewThread implements Runnable{
   public void run(){
    //....
   }
  }
  </code></pre>
  
  <p>Can I do it using Runtime.getRuntime().exec() ? Please Help..Thanks.</p>