多线程和多进程

Python中

对于io操作,不占用cpu,一般用多线程提高并发

对于计算型操作,占用cpu,一般用多进程提高并发

原文地址:https://www.cnblogs.com/mountian-lion/p/6399823.html