Utilise Slicer GUI when effect/module is running

I have written a segment editor effect. This effect usually takes about 8 minutes to run. However, during this time, Slicer is frozen and hence I cannot use it for anything else. Is it possible to still utilise slicer to view dicom data or work in other modules outside segment editor whilst my effect is running?

How can I utilise slicer when a module/effect is running in order to save time.

If the Segment Editor effect is in C++ you could try to make it multi-threaded so that it runs on a worker thread, allowing the main Slicer thread to run.

In Python, real multithreading is more complicated, but you could try this extension: GitHub - pieper/SlicerParallelProcessing: Slicer modules for running subprocesses to operate on data in parallel