摘要:
一:进程间的通信(IPC):先进先出 管道:队列=管道+锁 二:生产者消费者模型 import time, random from multiprocessing import Process, Queue def produer(name, food, q): for i in range(3): 阅读全文
摘要:
一:开启进程的两种方式(*****) 终端打印: 主 子进程 is running 子进程 is done Process finished with exit code 0 终端打印: 子进程 is running 子进程 is done 主 Process finished with exit 阅读全文