4 Replies Latest reply on Mar 14, 2007 5:43 AM by 807606

    help with executing threads

      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