What is the function of the shutdownNow() method(s) of the ExecutorService interface of the java.util.concurrent package?

What is the function of the shutdownNow() method(s) of the ExecutorService interface of the java.util.concurrent package?



Answer: Interrupts each worker thread that is not completed.


Learn More :

Multithreading and Concurrent Processing

Learn More Multiple Choice Question :