Answer the question
In order to leave comments, you need to log in
What happens if multiprocess is called from multiprocess?
Hello! I hope for the help of experienced developers.
For example, I'm making a library my_library
in which I use a module multiprocessing
to implement a method call_in_multiprocess
that does some kind of calculation.
What happens if a library user my_library
calls a method my_library. call_in_multiprocess
in another process, thinking, well, I'll now parallelize this through the process.
Should I explicitly state that a particular method internally runs in multiple processes. And should the user of the library somehow take this fact into account when writing their code.
A similar question is about threads, for example, with a method, my_library. call_in_multithreads
.
How do you write code in such situations?
I really want to figure out what's what.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question