开发者

Python relation/communication between two or more threads

开发者 https://www.devze.com 2023-03-11 22:15 出处:网络
I\'m new in Python, so I need some help. I created a server with SocketServer.ThreadingTCPServer 开发者_如何学Python

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

精彩评论

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