Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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


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:
subject: notify
It's not a secret anymore!