jbendtsen / AngioTool-Batch

A rewrite of AngioTool which can process multiple scans at a time
GNU General Public License v3.0
6 stars 2 forks source link

Use a global thread pool for all threads (except main and UI) #2

Closed jbendtsen closed 8 months ago

jbendtsen commented 8 months ago

There a a few classes that seem to create a whole bunch of threads on their own, in a totally unorganised fashion. ForkJoinSkeletonize2 in particular creates threads recursively, such that they never cleaned up properly. This leads to an exhaustion of system resources and an OutOfMemoryError during batch analysis - likely thread count before memory, but still.

jbendtsen commented 8 months ago

List of classes that likely create their own threads: