[jboss-jira] [JBoss JIRA] Created: (JBCOMMON-15) In BasicThreadPool allow the queue passed to MinPooledExecutor to be configurable.
Ron Sigal (JIRA)
jira-events at lists.jboss.org
Thu Feb 15 19:01:30 EST 2007
In BasicThreadPool allow the queue passed to MinPooledExecutor to be configurable.
----------------------------------------------------------------------------------
Key: JBCOMMON-15
URL: http://jira.jboss.com/jira/browse/JBCOMMON-15
Project: JBoss Common
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Affects Versions: 1.0.4.GA
Reporter: Ron Sigal
Assigned To: Dimitris Andreadis
Fix For: 1.0.4.GA
According to http://altair.cs.oswego.edu/pipermail/concurrency-interest/2004-September/001037.html, "in certain circumstances the combination of PooledExecutor with BoundedLinkedQueue with a waitWhenBlocked policy can lead to deadlock."
A post in the Remoting forum, http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995334#3995334, indicates that a deadlock has been detected in Remoting due to its use of BasicThreadPool. In response, the blocking policy in Remoting has been changed from WAIT to RUN, though WAIT would be preferable. The poster in http://altair.cs.oswego.edu/pipermail/concurrency-interest/2004-September/001037.html indicates that an alternative solution is to use BoundedBuffer in place of BoundedLinkedQueue.
It would be useful, therefore, if a queue could be passed to the BasicThreadPool constructor.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list