I have an application that uses 2 lengthy SwingWorker tasks, and I just came across several Windows computers with updated JVMs that only start one of them. There are no errors, so I should assume that the default thread pool has only one thread, so the second SwingWorker object is queued when I try to execute it.
So, (1) how to check how many threads are available in the SwingWorker default thread pool, and (2) how to add threads if I need more?
Anything else I should know? This seemingly single-threaded thread pool situation contradicts all my expectations.
I am creating a ThreadPoolExecutor, but this seems so wrong ...
source
share