Home
last modified time | relevance | path

Searched refs:nThreads (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/main/java/sun/nio/ch/
DThreadPool.java114 static ThreadPool create(int nThreads, ThreadFactory factory) { in create() argument
115 if (nThreads <= 0) in create()
117 ExecutorService executor = Executors.newFixedThreadPool(nThreads, factory); in create()
118 return new ThreadPool(executor, true, nThreads); in create()
/libcore/luni/src/main/java/java/util/concurrent/
DExecutors.java65 public static ExecutorService newFixedThreadPool(int nThreads) { in newFixedThreadPool() argument
66 return new ThreadPoolExecutor(nThreads, nThreads, in newFixedThreadPool()
128 public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) { in newFixedThreadPool() argument
129 return new ThreadPoolExecutor(nThreads, nThreads, in newFixedThreadPool()