大家讲道理2017-04-18 09:39:29
Queue comes with its own lock
If you use another lock, it is easy to cause a deadlock~
Also, you need to change sleep to cond.wait(), so that notify() will work~
PHP中文网2017-04-18 09:39:29
After reading the document for a long time, the RLock written above only has the reentrant feature in a thread
Reference: https://docs.python.org/2/lib...