摘要:
一守护进程与应用 import time,random from multiprocessing import Process,JoinableQueue def consumer(name,q): while True: res=q.get() if res is None:break time. 阅读全文
摘要:
一守护进程 主进程创建守护进程 其一:守护进程会在主进程代码执行结束后就终止 其二:守护进程内无法再开启子进程,否则抛出异常:AssertionError: daemonic processes are not allowed to have children 注意:进程之间是互相独立的,主进程代码 阅读全文