摘要:
每2秒弹出一组3个的 ‘got html text success’ Semaphore底层是用Condition实现的 阅读全文
posted @ 2019-08-04 16:50
_simpleSmile
阅读(217)
评论(0)
推荐(0)
摘要:
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... 阅读全文
posted @ 2019-08-04 16:30
_simpleSmile
阅读(411)
评论(0)
推荐(0)
摘要:
1.用锁会影响性能 2.锁会引起死锁 RLock 阅读全文
posted @ 2019-08-04 14:58
_simpleSmile
阅读(183)
评论(0)
推荐(0)

浙公网安备 33010602011771号