Python relation/communication between two or more threads
I'm new in Python, so I need some help.
I created a server with
SocketServer.ThreadingTCPServer
开发者_如何学Python
but my question is: Is there any way to communicate between two thread?
You can share a Queue http://docs.python.org/library/queue.html between the threads.
Twisted is an event-driven networking engine written in Python and licensed under the open source (MIT license). You can use it for between thread communication.
精彩评论