阅读背景:

python多线程 - 一个线程工作,另一个等待

来源:互联网 

I have two python scripts that need to be integrated in one script running on two different threads. I cannot integrate them in the same script since one of the scripts must perform a task every 2 minutes by sending data through MQTT, but the second one should be able to recieve web requests at any time, so I cannot just merge the scripts... can you suggest me a way of running it with multithreading by having one thread that runs once at every two minutes and the second one to run continuously. ThanksI have two python scripts that need to be integ




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: