Java tutorial
//package com.java2s; import javafx.concurrent.Task; public class Main { public static void startThread(Task task) { Thread thread = new Thread(task); thread.setDaemon(true); thread.start(); } }