This is regarding question number 37 in the exam at site http://www.javaprepare.com/quests/test.html javaprepare.com - Sample test 1 exam. The question is : Which of the following statements are true. Select all correct answers. (a)The wait method defined in the Thread class, can be used to convert a thread from Running state to Waiting state. (b) The wait(), notify(), notifyAll() must be executed in sybchronized code. (c) The notify() method can be used to signal and move waiting threads to ready-to-run state. (d) The Thread class is an abstract class. Answer at site to this question is b,c . But I have a doubt here. The notify method can be used to signal and move only one(any one out of many if there are many) waiting thread not threads to ready-to-run state. notifyAll() is used to signal and move waiting threads to ready-to-run state. Please clarify !!!
Dear All, wait() method is not implimented in the in the thread class, It should implement in the in object class. notify() will move only one thread form waiting to ready and notifyall () will move all waiting threads to Ready state I hope it is clear...... Thanks
[This message has been edited by Netla Reddy (edited September 03, 2000).]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com