# How to achieve parallel running on FEniCS like parallel command in Matlab?

**URL:** <https://fenicsproject.discourse.group/t/how-to-achieve-parallel-running-on-fenics-like-parallel-command-in-matlab/3529>\
**Category:** Uncategorized\
**Created:** [June 15, 2020, 5:01am UTC](https://fenicsproject.discourse.group/t/how-to-achieve-parallel-running-on-fenics-like-parallel-command-in-matlab/3529 "2020-06-15T05:01:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [June 15, 2020, 5:13am UTC](https://fenicsproject.discourse.group/t/how-to-achieve-parallel-running-on-fenics-like-parallel-command-in-matlab/3529/2 "2020-06-15T05:13:04Z")

</div>

If you want to distribute one code (with one input) over multiple processors, you can use `mpirun -n 2 python3 program.py` to run the program on two processors.  
If you would like to run the same code, with different inputs, you can use [concurrent.futures](https://docs.python.org/3/library/concurrent.futures.html).

---

_[View the full topic](https://fenicsproject.discourse.group/t/how-to-achieve-parallel-running-on-fenics-like-parallel-command-in-matlab/3529)._
