Can someone briefly explain on HOW and WHEN to use a ThreadFactory? An example with and without using ThreadFactory might be really helpful to understand the differences.
It is always a good practice to use custom thread factory. The default factories are not much of use. You should use a custom factory for the following reasons:
Check this post: http://wilddiary.com/understanding-java-threadfactory-creating-custom-thread-factories/