Closed doccaz closed 1 year ago
After the 100% CPU usage problems, I'll port the code to use concurrent.futures.ThreadPoolExecutor.
References: https://docs.python.org/3/library/concurrent.futures.html https://stackoverflow.com/questions/6509261/how-to-use-concurrent-futures-with-timeouts
It seems that after adopting a more "relaxed" approach to thread monitoring, everything is working fine and with lower CPU usage. Closing.
After the 100% CPU usage problems, I'll port the code to use concurrent.futures.ThreadPoolExecutor.
References: https://docs.python.org/3/library/concurrent.futures.html https://stackoverflow.com/questions/6509261/how-to-use-concurrent-futures-with-timeouts