Concept behind putting wait(),notify() methods in Object class [duplicate]
问题 This question already has answers here : How can the wait() and notify() methods be called on Objects that are not threads? (9 answers) Closed 2 years ago . I am just having hard time to understand concept behind putting wait() in Object class. For this questions sake consider if wait() and notifyAll() are in Thread class. class Reader extends Thread { Calculator c; public Reader(Calculator calc) { c = calc; } public void run() { synchronized(c) { //line 9 try { System.out.println("Waiting