Python多进程与多线程

多进程更适合CPU密集型任务,而多线程更适合IO密集型任务。 多进程 multiprocessing模块 import multiprocessing def my_function(arg1, arg2): print("Do something with arguments{},{}".form
posted @ 2023-02-18 22:59  rustling  阅读(17)  评论(0编辑  收藏  举报