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.