摘要:
一.GIL全局解释器锁 1.1 简介 In CPython, the global interpreter lock, or GIL, is a mutex that prevents multiple native threads from executing Python bytecodes a 阅读全文
posted @ 2022-01-17 20:32
bug俱乐部
阅读(27)
评论(0)
推荐(0)
摘要:
一.僵尸进程与孤儿进程 1.1 僵尸进程 进程代码运行结束之后并没有直接结束而是需要等待回收子进程资源才会结束 1.2 孤儿进程 主程序已经死亡,子程序还在运行 二.守护进程 守护进程即守护者某个进程,一旦该进程结束那么也随之结束 from multiprocessing import Proces 阅读全文
posted @ 2022-01-17 19:54
bug俱乐部
阅读(24)
评论(0)
推荐(0)