Two suggestions
(1) Stop writing code that relies on interrupting threads.
(2) To avoid lost wake up problems, replace foo.notify() with something that stays
signalled if there are no threads calling foo.wait(). Consider using a Semaphore or a
BlockingQueue from util.concurrent / java.util.concurrent.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058489#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...