进程和线程的三大区别
摘要:
#创建进程的开销远大于开启线程的开销from threading import Threadfrom multiprocessing import Processimport timedef task(name): print('代双华吃%s\n'%name) time.sleep(3) print 阅读全文
posted @ 2019-09-16 16:43 别离 阅读(273) 评论(0) 推荐(0) 编辑
posted @ 2019-09-16 16:43 别离 阅读(273) 评论(0) 推荐(0) 编辑