SCJP5 and SCWCD1.5
Think Twice Act Wise...
Thanks,<br />Subhasish
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
SCJP5 and SCWCD1.5
Think Twice Act Wise...
Originally posted by subhasish nag:
Here join() ensures that t must be finish before the current thread which was at that time t2.So a will always printed before c.
Thanks,<br />Srilatha M
Originally posted by Ganeshkumar cheekati:
when thread is completed the thread scheduler can give priority to the threads which are not running yet in any manner.
is it correct....?
Thanks,<br />Srilatha M
SCJP5 and SCWCD1.5
Think Twice Act Wise...
Preparing for SCJP 6.0
SCJP5 and SCWCD1.5
Think Twice Act Wise...
SCJP5 and SCWCD1.5
Think Twice Act Wise...
Originally posted by Ganeshkumar cheekati:
output is:
run by a
run by c
run by b
main method....
my doubt is that :
the current thread(main thread) has to stop executing until the thread to which it is joined sud b completed...
in program
i am joining current thread to the thread a.
that means after completing the thread a the current thread has to execute..
but here i am not getting..
can anyone clear my doubt?[/QB]
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Thanks,<br />Subhasish
SCJP5 and SCWCD1.5
Think Twice Act Wise...
SCJP5 and SCWCD1.5
Think Twice Act Wise...
Thanks,<br />Subhasish
SCJP5 and SCWCD1.5
Think Twice Act Wise...
SCJP5 and SCWCD1.5
Think Twice Act Wise...
Thanks,<br />Subhasish
Originally posted by Ganeshkumar cheekati:
so it is not gaurantee that main thread should execute immediately after the execution of thread-a...
Poop goes in a willow feeder. Wipe with this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|