Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830
this week in the
Programmer Certification
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Programmer Certification (OCPJP)
join() confusion
Poonam Kohli
Ranch Hand
Posts: 53
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi all,
I understand that t.join() would join the current
thread
to thread t.
Thread.currentThread().join() would make the current thread wait for itself and so make the program not terminate.
But what is join() in itself. I was playing with it and am really confused by behavious. Can someone explain?
What i am doing is
join()
thanks so much.
Ankit Garg
Sheriff
Posts: 9708
43
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What are you confused at?? You know both the rules. Did you try to call join() directly in a non-static method of a Thread sub-class??
SCJP 6 | SCWCD 5 |
Javaranch SCJP FAQ
|
SCWCD Links
Let's get him boys! We'll make him read this tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
why does the Object class have methods such as wait,notify,notifyall?
Thread
Question about the join() in thread
is it a DeadLock Condition?
join()
More...