If you shutdown an executor service that started a urlconnection, or a bufferedreader, without disconnecting the urlconnection or closing the bufferedreader, what happens, is there a memory loss, and will it slow down cpu?
If you shutdown an executor service that started a urlconnection, or a bufferedreader, without
Share
Shutting down an Executor does not terminate the already busy threads. Those will run to completion (or orderly shutdown using interrupt). So all resources will be cleaned up properly (unless you missed a finally block somewhere). It is your responsibility to make your runnables handle InterruptedException (and other Exceptions) properly.