If I create a pool of fixed-sized threads with 10 threads in java using the Executor framework:
private final ExecutorService pool; pool = Executors.newFixedThreadPool(10);
and then try to submit more than 10 tasks (for example, 12 tasks);
for (int i = 0 ; i < 12 ; i++) { pool.execute(new Handler(myRunnable)); }
What will happen to the additional tasks (additional two tasks, as an example of 12 tasks)? Will they be blocked until the thread completes its work?
source share