On Mon, 14 Dec 1998, Carlos Alberto Roman Zamitiz wrote:
> Hi, I attached my Cliente.java
> I have 2 threads: Receptor and Transmisor. Receptor sends and receives
> data from server, using method recibirPeticion(), forever (well, it sleeps
> 3 seconds). When Transmisor sends data, using method enviarPeticion(),
> Receptor must wait until Transmisor ends his transmition.
>
> I get
> java.lang.IllegalMonitorStateException: current thread not owner
You need to do just this.wait() and this.notifyAll(), notification happens
on the object Receptor and not on the threads.
. . . Sean.