Java Thread Executor Execute execute(Runnable runnable)

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

Description

execute

License

Apache License

Declaration

public static void execute(Runnable runnable) 

Method Source Code


//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
    }
}

Related

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