# Parallel Processing in GhPython

**URL:** <https://discourse.mcneel.com/t/parallel-processing-in-ghpython/167822>\
**Category:** Grasshopper\
**Tags:** windows, python, bug, parallel\
**Created:** [October 24, 2023, 10:45pm UTC](https://discourse.mcneel.com/t/parallel-processing-in-ghpython/167822 "2023-10-24T22:45:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frusciante](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/frusciante/32/640952_2.png) [@Frusciante](https://discourse.mcneel.com/u/Frusciante)\
**Post date:** [October 24, 2023, 10:45pm UTC](https://discourse.mcneel.com/t/parallel-processing-in-ghpython/167822/1 "2023-10-24T22:45:38Z")

</div>

Hello fellow grasshoppers,

I just discovered the “ghpythonlib.parallel.run” function, for ghpython, so I started experimenting a little bit with it. I’m not very familiar with it, but managed to run a code that works… or at least I thought so. While it appears to work, if you run the “test” button inside the python component multiple times, there will be out of nowhere appear a case in which the python component fails to process completely. I’m not sure what is going on, but I leave it here if there is someone that feels like could give some insight.

I will also leave a sc of when the component fails to run, if it helps out.

 ![Screenshot (11)](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/2/b/82bb7fc4609bbef73caedc1c2e1026a8a6f8dd32.jpeg)

Thanks!  
[Multithread Bugged Component.gh](https://discourse.mcneel.com/uploads/short-url/1ow5ZFvi1xAbni6Me4A4PIoxAQh.gh) (18.4 KB)

---

<div class="post-metadata">

**Author:** ![TomTom](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tomtom/32/651939_2.png) [@TomTom](https://discourse.mcneel.com/u/TomTom)\
**Post date:** [October 25, 2023, 7:21am UTC](https://discourse.mcneel.com/t/parallel-processing-in-ghpython/167822/2 "2023-10-25T07:21:53Z")

</div>

Could you please copy the code inside a message by using 3 backticks  
``` py  
\<your code\>  
```
