摘要:
转自:http://www.cnblogs.com/alex3714/articles/5230609.html def hello(): print("hello, world") t = Timer(30.0, hello) t.start() # after 30 seconds, "hell 阅读全文
摘要:
转自:https://www.cnblogs.com/chengd/articles/7770898.html 1. threading.Lock() 当多个线程同时执行lock.acquire()时,只有一个线程能成功地获取锁,然后继续执行代码,其他线程就继续等待直到获得锁为止。 获得锁的线程用完 阅读全文
摘要:
转自: https://blog.csdn.net/weixin_38125866/article/details/76795462 https://www.cnblogs.com/lcchuguo/p/4687348.html Python GIL(Global Interpreter Lock) 阅读全文