Hi,
From my main
thread, i am spawning few child threads.
In the last method call, i want to do something which requires all the threads to be finished processing. One brute force approach is to implement the method waitForAllThreadsAndDoSomething() in the following manner:
but this is too ugly and memory consuming.
can anyone suggest a cleaner approach by using methods in thread class like: wait(), notify(), yeild() ?
cheers