I want to start the execution of new Thread in separate command window without affecting the execution of main Thread.
I have something like this:
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(){
//....
}
}
Can I do it using Runtime.getRuntime().exec() ? Please Help..Thanks.