Answer the question
In order to leave comments, you need to log in
Python Multiprocessing How to use libraries that don't work in multithreading?
How to make sure that we include this library once
Pass it to all subprocesses
And it is used in turn
Can you show an example code?
I had the option to write the required code in the queue in the form of a string
AND in the main file after starting the processes
Using exec to execute all non-threaded functions, but then we will not be able to return the value to the thread and this is not optimal
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