Here you can find the source of startDaemonThread(Runnable runnable)
private static Thread startDaemonThread(Runnable runnable)
//package com.java2s; //License from project: Open Source License public class Main { private static Thread startDaemonThread(Runnable runnable) { Thread result = new Thread(runnable); result.setDaemon(true);//from w w w. j a v a 2 s .c o m result.start(); return result; } }