whatever I set the size of pool, the run results seems to not exceed the pool size.For example:
BlockingQueue<Runnable> queue = new LinkedBlockingQueue<>();
ThreadPoolExecutor executor = new ThreadPoolExecutor(8, 15, 1, TimeUnit.DAYS, queue);
executor.execute(new Runnable() {
public void run() {
}
});
when I set 8, the first 8 results will synchronize. But the following only run one by one.
what's wrong and how to fix?