¡@

Home 

java Programming Glossary: java.lang.illegalmonitorstateexception

IllegalMonitorStateException on wait() call

http://stackoverflow.com/questions/1537116/illegalmonitorstateexception-on-wait-call

but when I am using Thread.wait it is throwing java.lang.IllegalMonitorStateException . How can I make a thread wait until it will be notified java..

How to use wait and notify in Java?

http://stackoverflow.com/questions/886722/how-to-use-wait-and-notify-in-java

it throws me these exceptions Exception in thread Thread 9 java.lang.IllegalMonitorStateException at java.lang.Object.notify Native Method at multiplyThread.run.. Exception in thread Thread 6 Exception in thread Thread 4 java.lang.IllegalMonitorStateException at java.lang.Object.notify Native Method at multiplyThread.run.. Native Method at multiplyThread.run multiplyThread.java 49 java.lang.IllegalMonitorStateException at java.lang.Object.notify Native Method at multiplyThread.run..