# Utilise Slicer GUI when effect/module is running

**URL:** <https://discourse.slicer.org/t/utilise-slicer-gui-when-effect-module-is-running/23065>\
**Category:** Development\
**Tags:** segmentation\
**Created:** [April 21, 2022, 4:26am UTC](https://discourse.slicer.org/t/utilise-slicer-gui-when-effect-module-is-running/23065 "2022-04-21T04:26:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@Karthik](https://discourse.slicer.org/u/Karthik)\
**Post date:** [April 21, 2022, 4:26am UTC](https://discourse.slicer.org/t/utilise-slicer-gui-when-effect-module-is-running/23065/1 "2022-04-21T04:26:08Z")

</div>

Hi.  
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.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [April 21, 2022, 1:48pm UTC](https://discourse.slicer.org/t/utilise-slicer-gui-when-effect-module-is-running/23065/2 "2022-04-21T13:48:09Z")

</div>

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](https://github.com/pieper/SlicerParallelProcessing)
