Is there practically any limit on how many number of Runnable
's that can be added to the queue in a fixed/cached Thread Pool of say 10 worker Threads..??
In my application, I am trying to add 100000 Runnable
's.
for (int i=0; i<100000; i++) {
executor.execute(new Task(i));
}
Will it actually process all the Runnable
's added to the Queue..? Or will it throw an Exception
?