aspose file tools
The moose likes Java in General and the fly likes Why wait() within synchronized context? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Why wait() within synchronized context?" Watch "Why wait() within synchronized context?" New topic
Author

Why wait() within synchronized context?

Kishore Kondreddi
Greenhorn

Joined: May 10, 2006
Posts: 3
why all the three methods�wait()/notify()/notifyAll()�must be called
from within a synchronized context?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24041
    
  13

Hi,

Welcome to JavaRanch!

We have a forum devoted to "Threads and Synchronization." I'm going to move this there before answering.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: Why wait() within synchronized context?
 
Similar Threads
Thread question 9 in K&B P765
Why wait() within synchronized context?
using wait() method in Threads
wait and notify
Wait() Example