Java Thread Executor Execute execute(Runnable command)

Here you can find the source of execute(Runnable command)

Description

execute

License

Open Source License

Declaration

public static void execute(Runnable command) 

Method Source Code


//package com.java2s;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Main {
    private static ExecutorService executorService = Executors.newSingleThreadExecutor();

    public static void execute(Runnable command) {
        executorService.execute(command);

    }//from  www .  j  a v a 2s . co m
}

Related

  1. exec(Callable callable)
  2. exec(Runnable... commands)
  3. execute(Callable callable)
  4. execute(final Runnable task)
  5. execute(int nThreads, List callables)
  6. execute(Runnable command)
  7. execute(Runnable runnable)
  8. execute(Runnable task)
  9. execute(Runnable task)