[jboss-jira] [JBoss JIRA] Commented: (JGRP-541) Thread pools in transport protocols not using daemon threads

Vladimir Blagojevic (JIRA) jira-events at lists.jboss.org
Wed Jun 27 16:40:57 EDT 2007


    [ http://jira.jboss.com/jira/browse/JGRP-541?page=comments#action_12367101 ] 
            
Vladimir Blagojevic commented on JGRP-541:
------------------------------------------

"In particular, it is dangerous to use daemon threads for tasks that might perform any sort of I/O. Daemon threads are best saved for 'housekeeping' tasks, such as background thread that periodically removes expired entries from an in-memory cache" - Brian Goetz (JCIP, page 165)

> Thread pools in transport protocols not using daemon threads
> ------------------------------------------------------------
>
>                 Key: JGRP-541
>                 URL: http://jira.jboss.com/jira/browse/JGRP-541
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 2.5
>            Reporter: Paul Ferraro
>         Assigned To: Bela Ban
>            Priority: Minor
>             Fix For: 2.5
>
>
> The ThreadFactory used by the ThreadPoolExecutors (for both regular and OOB messages) in org.jgroups.protocols.TP does not create daemon threads.  During runtime the JVM will resist exiting unless the channel is explicitly shutdown.

-- 
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