Answer the question
In order to leave comments, you need to log in
Python Why don't nested functions work when multithreaded?
It is necessary that two subroutines work in parallel I
use multiprocessing
p1 = Process(target=monitor)
p2 = Process(target=bot)
Answer the question
In order to leave comments, you need to log in
For anything to work in multithreading, all this code must be specially adapted for multithreading, along with all the modules and libraries it uses, including extensions on these. If at least some of this is not thread-safe, then the whole code will not be thread-safe.
Use better multiprocessing.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question