摘要:
每2秒弹出一组3个的 ‘got html text success’ Semaphore底层是用Condition实现的 阅读全文
摘要:
1 #!/user/bin/env python 2 # -*- coding:utf-8 -*- 3 4 # 条件变量,用于复杂的线程间同步 5 # 通过condition完成协同读诗 6 from threading import Lock 7 from threading import Condition 8 import threading 9 10 11 cla... 阅读全文
摘要:
1.用锁会影响性能 2.锁会引起死锁 RLock 阅读全文