[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Declaration and deployment of threads and thread pools i

david.lloyd@jboss.com do-not-reply at jboss.com
Tue Dec 2 22:17:49 EST 2008


...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/main/src/test/java/org/jboss/threads/ThreadPoolTestCase.java

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193909#4193909

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4193909



More information about the jboss-dev-forums mailing list