Java tutorial
//package com.java2s; public class Main { public static void run(final String name, final Runnable r) { Thread t = new Thread(name) { public void run() { r.run(); } }; t.start(); } }