开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜