...and I've created one. It makes sure that the queue submit unblocks after the
worker thread dies. The executor used in the test is basically a regular
ThreadPoolExecutor with the same queue wrapper, except I wrap the wrapped queue again to
add addtional blocking so that the queue unblocks right when the race would occur - when
the worker thread from the first task exits leaving zero threads in the pool.
http://anonsvn.jboss.org/repos/sandbox/david.lloyd/jboss-threads/trunk/ma...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193909#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...