# Can I use multiprocessing in a Python module

**URL:** <https://discourse.slicer.org/t/can-i-use-multiprocessing-in-a-python-module/1537>\
**Category:** Development\
**Created:** [November 28, 2017, 7:35am UTC](https://discourse.slicer.org/t/can-i-use-multiprocessing-in-a-python-module/1537 "2017-11-28T07:35:37Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 13, 2019, 2:16pm UTC](https://discourse.slicer.org/t/can-i-use-multiprocessing-in-a-python-module/1537/9 "2019-03-13T14:16:18Z")

</div>

I’m not sure if you can run several threads but you can certainly run several processes.

You can use Slicer’s CLI module interface to synchronize execution and pass data between the main process and the parallel processes. [CLI modules can be implemented in Python](https://discourse.slicer.org/t/how-to-run-python-based-cli-modules/4627) or C++.

We plan to have native Python3 support and ability to install any Python packages within a few weeks. This will allow you to use any of the native Python multi-processing methods. It won’t make things faster or simpler, the only difference is that you can use pure Python mechanisms instead of Slicer-specific ones.

---

_[View the full topic](https://discourse.slicer.org/t/can-i-use-multiprocessing-in-a-python-module/1537)._
