| 1. |
What Is Difference Between Shutdownnow() And Shutdown() In Executor Framework In Java? |
|
Answer» shutdown() and shutdownNow() methods BELONGS to ExecutorService. shutdown() method tries to stop the threads and do not ACCEPT new task to execute but it completes the execution which has been SUBMITTED. shutdownNow() methods also tries to stop the running threads and will not execute any task which has been submitted but not STARTED. shutdown() and shutdownNow() methods belongs to ExecutorService. shutdown() method tries to stop the threads and do not accept new task to execute but it completes the execution which has been submitted. shutdownNow() methods also tries to stop the running threads and will not execute any task which has been submitted but not started. |
|