Hello, I was making following simple program and it is giving eror: java.lang.IllegalMonitorStateException: current thread not owner If I use sleep insteand of wait() method it works. What could be the reason? Pl help. regards, Arun :roll:
arun mahajan
Ranch Hand
Joined: Dec 07, 2001
Posts: 304
posted
0
Oh I am sorry. I found the error. Methods are not synchronized. Thanks any way. regards, Arun