I am using executor service in my code the number of threads that are used is more than a 100 . Once the execution is complete , shutdown() method is called on the executor service and then awaitTermination() is called.
The java class is invoked by using a shell script from linux terminal . I would like to know what happens when the execution is stopped by pressing ctrl+C in a state where executor service is started but not shutdown completely.
Does it result in the threads being killed ,their memory being cleaned up and resources being deallocated or would it result in memory leaks.