Searched defs:nThreads (Results 1 - 12 of 12) sorted by relevance

/openjdk7/jdk/test/java/nio/channels/spi/AsynchronousChannelProvider/
H A DProvider1.java35 public AsynchronousChannelGroup openAsynchronousChannelGroup(int nThreads, ThreadFactory factorry) argument
H A DProvider2.java36 (int nThreads, ThreadFactory threadFactory) throws IOException
35 openAsynchronousChannelGroup(int nThreads, ThreadFactory threadFactory) argument
/openjdk7/hotspot/test/compiler/7009231/
H A DTest7009231.java43 private static void doTest(int nThreads) throws InterruptedException { argument
44 Thread[] aThreads = new Thread[nThreads];
47 for (int i = 0; i < nThreads; i++) {
51 for (int i = 0; i < nThreads; i++) {
55 for (int i = 0; i < nThreads; i++) {
/openjdk7/jdk/src/windows/classes/sun/nio/ch/
H A DWindowsAsynchronousChannelProvider.java56 public AsynchronousChannelGroup openAsynchronousChannelGroup(int nThreads, ThreadFactory factory) argument
59 return new Iocp(this, ThreadPool.create(nThreads, factory)).start();
/openjdk7/jdk/src/solaris/classes/sun/nio/ch/
H A DBsdAsynchronousChannelProvider.java54 public AsynchronousChannelGroup openAsynchronousChannelGroup(int nThreads, ThreadFactory factory) argument
57 return new KQueuePort(this, ThreadPool.create(nThreads, factory)).start();
H A DLinuxAsynchronousChannelProvider.java54 public AsynchronousChannelGroup openAsynchronousChannelGroup(int nThreads, ThreadFactory factory) argument
57 return new EPollPort(this, ThreadPool.create(nThreads, factory)).start();
H A DSolarisAsynchronousChannelProvider.java55 public AsynchronousChannelGroup openAsynchronousChannelGroup(int nThreads, ThreadFactory factory) argument
58 return new SolarisEventPort(this, ThreadPool.create(nThreads, factory)).start();
/openjdk7/jdk/src/share/classes/java/nio/channels/
H A DAsynchronousChannelGroup.java160 * threads. At any point, at most {@code nThreads} threads will be active
170 * @param nThreads
178 * If {@code nThreads <= 0}
182 public static AsynchronousChannelGroup withFixedThreadPool(int nThreads, argument
187 .openAsynchronousChannelGroup(nThreads, threadFactory);
/openjdk7/jdk/src/share/classes/java/nio/channels/spi/
H A DAsynchronousChannelProvider.java172 * @param nThreads
178 * If {@code nThreads <= 0}
185 openAsynchronousChannelGroup(int nThreads, ThreadFactory threadFactory) throws IOException; argument
/openjdk7/jdk/test/java/nio/channels/FileChannel/
H A DClosedByInterrupt.java68 * Starts "nThreads" that do I/O on the given file concurrently. Continuously
73 static void test(File f, int nThreads) throws Exception { argument
75 Thread[] threads = new Thread[nThreads];
78 for (int i=0; i<nThreads; i++) {
96 for (int i=0; i<nThreads; i++) {
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DThreadPool.java114 static ThreadPool create(int nThreads, ThreadFactory factory) { argument
115 if (nThreads <= 0)
116 throw new IllegalArgumentException("'nThreads' must be > 0");
117 ExecutorService executor = Executors.newFixedThreadPool(nThreads, factory);
118 return new ThreadPool(executor, true, nThreads);
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DExecutors.java76 * <tt>nThreads</tt> threads will be active processing tasks.
84 * @param nThreads the number of threads in the pool
86 * @throws IllegalArgumentException if {@code nThreads <= 0}
88 public static ExecutorService newFixedThreadPool(int nThreads) { argument
89 return new ThreadPoolExecutor(nThreads, nThreads,
98 * at most <tt>nThreads</tt> threads will be active processing
107 * @param nThreads the number of threads in the pool
111 * @throws IllegalArgumentException if {@code nThreads <= 0}
113 public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactor argument
[all...]

Completed in 165 milliseconds