public Thread newThread(Runnable runnable) {
Thread t = originalThreadFactory.newThread(
new NamePreservingRunnable(
runnable,
ExecutorThreadModel.this.threadNamePrefix + '-' +
threadId.incrementAndGet()));
t.setDaemon(true);
return t;
}
};
tpe.setThreadFactory(newThreadFactory);