摘要: 一、验证GIL锁的存在方式 GIL锁:全局解释器锁 GIL锁作用:因为垃圾回收线程不是线程安全的,所有线程必须拿到这把锁,才能执行 from threading import Thread from multiprocessing import Process def task(): while T 阅读全文
posted @ 2020-08-26 16:07 1024bits 阅读(238) 评论(0) 推荐(0) 编辑