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
My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|