When one thread calls the join() method of another thread, the currently
running thread will wait until the thread it joins with has completed.
SCJP 5.0 - Passed
SCJP 1.5
SCJP 5.0 - Passed
SCJP 1.5
SCJP 1.5
SCJP 5.0 - Passed
Originally posted by robert stannard:
I think the problem with your Join is that you are joining to the Main thread and not joining one thread to another, so what happens is that the Main thread runs and completes and then the other threads run on after the other in not particular order.
I also struggle with Thread questions and am hoping that I dont have too many difficult ones !![]()
SCJP 5.0 - Passed
SCJP 1.5
SCJP 5.0 - Passed
SCJP 1.5
Originally posted by Frank Zito:
does this help (modifies main method though) ?
SCJP1.5
All that thinking. Doesn't it hurt? What do you think about this tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|