I want to know the main difference between shutdown() and shutdownNow() to close the Executor Service ? As far as I understand, shutdown() should be used for graceful shutdown, which means all tasks that are started and queued for processing, but not started, must be completed, and shutdownNow() ends abruptly , which means that some incomplete tasks are canceled, and also canceled tasks are also canceled. Is there anything else that is implicit / explicit that I am missing?
PS: I found one more question in https://stackoverflow.com/a/166269/2126/ but not quite what I want to know.
java java.util.concurrent
Geek Jul 17 2018-12-17T00: 00Z
source share