I'm fairly new to threads in Java... and I was wondering if it was possible to start threads from threads...
Basically... is it possible to say...
if (some condition is met)
start n threads
thread_1.sleep(till n threads finish)
I know that a thread in Java can be just a simple call saying thread.start(), but I didn't find anything that shows me how to start a variable number of threads, and get the parent thread to wait for its child threads to finish.
Is there a "simple" way to do this?
Thanks in advance!