Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { public static void start(Runnable executer, String threadName, boolean demon) { Thread thread = new Thread(executer, threadName); thread.setDaemon(demon); thread.start(); } }