2 Replies Latest reply on Jun 6, 2005 6:20 PM by Clebert Suconic

    FileBenchmarkReceiver Thread Model vs DatabaseBenchmarkRecei

    Clebert Suconic Master

      FileBenchmarkReceiver has this piece of code for multi-threading:

      private void initServerThread()
       {
       Thread svrThread = new Thread()
       {
       public void run()
       {
       while(keepRunning)
       {
       try
       {
       currentThread().sleep(1000);
       }
       catch(InterruptedException e)
       {
       log.debug("Server thread interrupted.");
       }
       }
       }
       };
       svrThread.setDaemon(false);
       svrThread.start();
       }
      


      For DatabaseBenchmarkReceiver I'm only using JGroups threading model.

      So... should I do the same in DatabaseBenchmarkReceiver?


      Clebert Suconic