multithread or multiprocess to control subprocess

Viewed 18

When using ThreadPoolExecutor vs ProcessPoolExcecutor it is a clear choice when all code is written in python.

But what should be used when python uses the subprocess module to kick off task that require heavy compute?

For example I use subprocess to kick off a program that uses NIM, or C++, Does python see that as IO since it is not outside of its language?

0 Answers
Related