Reputation: 8947
I am using some 3rd party code, which may hang indefinitely in some cases. This leads to hanging threads which keep holding the resources and clogging a thread pool.
Eventually thread pool becomes full of useless threads and system effectively fails.
In Java one can't forcefully kill the thread (kill -9). But how then to manage such edge cases?
Upvotes: 0
Views: 254
Reputation: 533870
Obviously fixing the bug would be better, however alternative include
Upvotes: 2