Hello all!
This is a question a bit off-context but, the clearing of this doubt will
help me implement concurrencial Db access through servlets.
I am trying to implement a Reader/Writer arquitecture to access a DB.
The restritions are, Many readers as long as there is no active writer, one
writer assuming there is neither active writer nor active reader.
I am using threads, and when one of the nedded thing is not respected the
thread waits (wait()). It then should be awakned by a notifyAll().
the problem is that the sleepping threads dont wake up.
I attach the code, here
<<rw.java>>
Appretiate any help!!
Thank you!
Telmo
rw.java