What is the function of the newFixedThreadPool(int nThreads) method(s) of the Executors class of the java.util.concurrent package?

What is the function of the newFixedThreadPool(int nThreads) method(s) of the Executors class of the java.util.concurrent package?



Answer: Creates a thread a pool that reuses a fixed number of worker threads; if a new task is submitted when all the worker threads are still executing, it will be placed into the queue until a worker thread is available


Learn More :

Multithreading and Concurrent Processing

Learn More Multiple Choice Question :