I have a Multithreading application, so I implemented ExecutorService
with a Pool Size of 5 Threads
public class SimpleThreadPool {
public static void main(String[] args) {
ExecutorService executor = Executors.newFixedThreadPool(5);
for (int i = 0; i < 10; i++) {
Runnable worker = new WorkerThread("" + i);
executor.execute(worker);
}
executor.shutdown();
while (!executor.isTerminated()) {
}
System.out.println("Finished all threads");
}
}
The application will be deployed in Websphere Web server in with settings contain a Thread Pool configuration : Application servers > > Thread Pools > Default, the Maximum Size is set to 60.
My question is, which Pool size configuration is taken, does the configuration in Websphere override the one in the code(5 threads) ?