昨天在一个群里面遇到的,使用py做计算,只有1个CPU在跑任务,其它的怠工。
在py3以后,提供了:concurrent.futures
mark 如下;
官方文档:
16.6. multiprocessing — Process-based “threading” interface
https://docs.python.org/2/library/multiprocessing.html
example:
https://pymotw.com/3/multiprocessing/index.html
转载于:https://www.cnblogs.com/tanxstar/p/6116307.html
相关资源:JAVA上百实例源码以及开源项目