3 Replies Latest reply: Nov 21, 2008 2:34 AM by 807589 RSS

    Thread not waiting for DOS process

    807589
      Hi

      In program I am using Threads. Here all threads will start and execute one DOS command. My problem is that all those thread needs to wait for DOS command to finish its process and then only thread should return.

      I have created ThreadGroup and added all threds. And I am checking it by using

      ThreadGroupVar.activeCount()!=0 so that I can come to know all thread processing is over or not.

      Threads are coming back to main process as soon as they start DOS command ..they are just not waiting it to be finish DOS job.


      Please guide me on this
      Regards,
      Niraj