摘要: GIL与普通互斥锁区别 验证GIL的存在 from threading import Thread, Lock import time money = 100 def task(): global money money -= 1 for i in range(100): # 创建一百个线程 t = 阅读全文
posted @ 2022-04-21 21:52 早安_1207 阅读(41) 评论(0) 推荐(0)
返回顶端