Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { public static Thread startDaemon(Runnable action) { Thread thread = new Thread(action); thread.setDaemon(true); thread.start(); return thread; } public static Thread start(Runnable action) { Thread thread = new Thread(action); thread.start(); return thread; } }