# Processing-java - python multiprocessing pool

**URL:** https://discourse.processing.org/t/processing-java-python-multiprocessing-pool/38732
**Category:** Processing
**Created:** [September 13, 2022, 10:08am UTC](https://discourse.processing.org/t/processing-java-python-multiprocessing-pool/38732 "2022-09-13T10:08:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![superumam](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@superumam](https://discourse.processing.org/u/superumam)
#### Post date: [September 13, 2022, 10:08am UTC](https://discourse.processing.org/t/processing-java-python-multiprocessing-pool/38732/1 "2022-09-13T10:08:07Z")

</div>

Hi, everyone. I’m finding an expert who has some experience on multiprocessing with processing-java.  
I’ve developed a python script to run processing-java command with multiprocessing pool.

— Python Script—  
from multiprocessing import Pool  
def func(meta):  
…  
os.system(“./processing/processing-java --sketch="” + cwd + “/oscilloscope/" --run " + str(meta) + "  
mint”)  
…  
pool = Pool()  
pool.map(func, range(len(metadata)))

* * *

**At first, I see the generating starts well at first and some complete videos come out, but all processes are slept, and the video never come out any more at some point.**

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/6/5/65cf8087081409fdb70be8c6a79a435c61d5104a.png)  
Hope for your help.

---

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [September 16, 2022, 12:18pm UTC](https://discourse.processing.org/t/processing-java-python-multiprocessing-pool/38732/2 "2022-09-16T12:18:11Z")

</div>

Hi @superumam,

> [@superumam](#):
>
> I’ve developed a python script to run processing-java command with multiprocessing pool.

Could you describe a little bit what you are trying to achieve? Why running multiple Processing Java processes? Do you do batch processing? Are you displaying something?

> [@superumam](#):
>
> At first, I see it looks running well, but all processes are slept at one time.

What does slept means? Do your processes still run?
