This discussion is archived
4 Replies Latest reply: Mar 13, 2007 10:43 PM by 807606 RSS

help with executing threads

807606 Newbie
Currently Being Moderated
I have a Main class which starts up a whole bunch of server classes in my project as in

public class Main
{

public static void main(String argv[])
{
new BackUpServer();
new DiscoverServer();
// etc etc

}
}
Each of these servers is a thread (they all have Thread t = new Thread(this) and t.start() in their constructors).

The problem now is that when I do java Main from the command prompt, all the servers are doing their work and displaying output on the same console window.

How do i make each thread run in a different window?

Thanx a lot for your help