Cannot start multiple threads #1991
Unanswered
makaveli10
asked this question in
Q&A
Replies: 1 comment
-
You monkey patched threads, so they are async. So it all runs on one thread. In your infinite loop you need sleep (depending what else is in the threaded function) for any of the other "async threads" to do anything. If you need true threads, I'd use another python process for the threaded stuff. https://eventlet.net/doc/modules/greenthread.html#eventlet.greenthread.sleep |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I cannot start the second thread with the first thread having an infinite loop. I want to know if
socketio
runs threads in the background? If so, why it waits for the first thread to finish up?Below is my code:
Beta Was this translation helpful? Give feedback.
All reactions