Here you can find the source of invokeOnBackgroundThread(Runnable runnable)
public static void invokeOnBackgroundThread(Runnable runnable)
//package com.java2s; //License from project: Open Source License import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class Main { public static void invokeOnBackgroundThread(Runnable runnable) { ExecutorService executor = Executors.newSingleThreadExecutor(); executor.execute(runnable);/*from w ww . ja v a 2s.c om*/ executor.shutdown(); } }