Home >
other > About python thread allocation problem
About python thread allocation problem
Consult everybody, I have a project in python development, need three threads, thread 1 is used to read at the scene equipment state information, the data quantity is 1000 bytes; Thread 2 the thread one reads data in real time by flask is sent to the web front end, let the front-end display; Thread 3 is every minute storage thread 1 reads the current data to the database, then the three threads I change how to cooperate, is open three threads run independently, still need to thread lock, or through the thread queue to deal with, such as the three threads are constantly thread of execution, how to cooperate?