I have a WorkManager + ThreadPool under Glassfish that uses TIMED_WAIT, for example:
p: thread-pool-1; w: 2018 (TIMED_WAITING):
at java.lang.Object.wait(Native Method) at com.sun.corba.ee.impl.orbutil.threadpool.WorkQueueImpl.requestWork(WorkQueueImpl.java:171) at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:528)`
Assume for a moment that the threads do nothing (i.e. no work is ever added). Is there a difference in CPU usage between 100 threads in a pool and 3000 threads in a pool?
Our testing shows that it is not, but I would like to make sure.
source share