wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes notify 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 "notify" Watch "notify" New topic


josephine chen
Ranch Hand

Joined: Oct 29, 2002
Posts: 216
does notify stop thread execution???
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
notify() method resumes execution of a waiting thread.
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
All notify does is move a waiting thread to ready state. The current thread (the one that invoked notify) will still run until it stops for some other reason - most likely, either it will finish executing the code it's supposed to execute, or eventually the thread scheduler will pause it so another thread can have a chance.

"I'm not back." - Bill Harding, Twister
I agree. Here's the link: http://aspose.com/file-tools
subject: notify
Similar Threads
Why does "notify" need to be synchronized ?
Looping a no-good user input
Threads - Runnable vs. Extending Thread
client being aware of the mode 'local' or 'remote'
Why interruption here is ignored always when solving SCJP Thread questions