摘要: GIL GIL,Golbal Interprter Lock(全局解释器锁) 从底层实现来看,GIL锁是结构为pthreads互斥锁(mutex)和一个条件变量(cond)构造的二进制信号量(semaphore)的一个实例(instance),这种semaphore的结构如下: struct loc 阅读全文
posted @ 2021-05-11 11:39 seas 阅读(161) 评论(0) 推荐(0) 编辑