摘要:
线程锁: Lock :原始锁,目前可用的最低级的同步原语 Rlock :可重入锁 class threading.Lock class threading.RLock 实例方法: acquire(blocking=True, timeout=-1) 尝试锁定... 阅读全文
posted @ 2019-04-14 17:18
周零开
阅读(21)
评论(0)
推荐(0)
摘要:
线程创建 Thread 类 创建线程的方法 1.直接传要运行的方法 2.继承thread类,重写run方法 构造方法 class threading.Thread(group=None, target=None, name=None, args=(), k... 阅读全文
posted @ 2019-04-14 16:54
周零开
阅读(16)
评论(0)
推荐(0)
浙公网安备 33010602011771号