python并发
摘要:
一、临界资源 锁机制(Rlock): lock=RLock() lock.acquire() lock.release() 通常try: finally 语句中(with lock:使用方便)with(__enter__,__exit__) 二、线程池 with ThreadPoolExecutor 阅读全文
posted @ 2021-02-18 13:44 吉阿吉 阅读(55) 评论(0) 推荐(0)
posted @ 2021-02-18 13:44 吉阿吉 阅读(55) 评论(0) 推荐(0)
posted @ 2021-02-07 22:17 吉阿吉 阅读(61) 评论(0) 推荐(0)
posted @ 2021-02-04 15:41 吉阿吉 阅读(66) 评论(0) 推荐(0)