Here you can find the source of execute(Runnable runnable)
public static void execute(Runnable runnable)
//package com.java2s; //License from project: Apache License import java.util.concurrent.ExecutorService; import java.util.concurrent.ScheduledThreadPoolExecutor; public class Main { private static final ExecutorService THREAD_POOL = new ScheduledThreadPoolExecutor( Runtime.getRuntime().availableProcessors() * 4); public static void execute(Runnable runnable) { THREAD_POOL.execute(runnable);//from w w w. ja v a 2 s.c o m } }