Executors.DefaultThreadFactory
except that the threads it produces are always daemon threads. Lingering non-daemon threads are often the cause of JVM shutdown hang. All {@link Executors} builders that usethe Executors.DefaultThreadFactory produce non-daemon threads which result in this behavior. All {@link Executors}builders have a second form which accepts a non-default {@link ThreadFactory}, the ideal conduit to make use of this DaemonThreadFactory.
|
|