wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "threads" Watch "threads" New topic
Author

threads

srilatha rao
Greenhorn

Joined: Jun 01, 2006
Posts: 21
If a parent thread invokes join method on a child thread, then parent thread will go into the blocked-for-join-completion state.
If that child thread sleeps for some time in that execution, Will the parent thread start running before the completion of child thread.

please explain...

Thanks in advance
Javier Sanchez Cerrillo
Ranch Hand

Joined: Aug 02, 2006
Posts: 152
NO. Since the parent Thread is sleeping it cannot wake up just until child Thread has finished his work or it has been interrupted.


SCJP 5.0 95%<br /> <br />The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: threads
 
Similar Threads
Parent Thread stops then does child thread also stop?
How to block child thread until parent thread terminates
Join method
How can I determine when my Threads are complete?