Click to See Complete Forum and Search --> : Have a problem with thread


May 8th, 2000, 02:28 PM
- I have a object that runs inside a thread.
- I create an array of these objects in main().
- I use the join method of the main Thread to wait for the other threads to complete
- I have a while loop in the objects and a System.out.println when it comes out of the while loop.
-even after all the threads have completed thier job the main thread is waiting and no comming out.

Can anyone tell me the solution for this.Any suggestion are welcome.
Thanks in advance

Jamil