File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "notify" Watch "notify" New topic
Author

notify

josephine chen
Ranch Hand

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

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

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
 
 
subject: notify