Skip to main content
3 events
when toggle format what by license comment
May 18, 2022 at 18:16 comment added G. Sliepen Sure, if it is not an issue that you run with fewer worker threads than planned, then you can indeed just continue. Of course you should make the constructor itself throw an exception if no threads could be created at all.
May 18, 2022 at 13:04 comment added Developer Paul Thanks for the feedback! Regarding exceptions being thrown in the constructor: If I am catching the exception, do I need to shut down the already created threads in the catch block? Couldn't I just let the thread pool operate with as many threads as it can create? It should operate as normal right just with fewer threads?
May 16, 2022 at 20:45 history answered G. Sliepen CC BY-SA 4.0