Python中,如果想使程序充分利用多核处理器,有以下几个方案:

l 使用threading模块,然后将程序运行在IronPythonJython之上。

l 使用Python自带的multiprocessing模块,这个是用来创建多进程的。

l 使用subprocess模块创建子进程,并控制它们。

l 使用TwistedAmpoule框架。

 

参考资料:http://stackoverflow.com/questions/203912/does-python-support-multiprocessor-multicore-programming 

相关文章:

  • 2022-12-23
  • 2021-07-20
  • 2021-10-30
  • 2022-12-23
  • 2021-04-18
  • 2021-09-19
  • 2021-04-03
  • 2021-06-22
猜你喜欢
  • 2021-06-27
  • 2021-04-28
  • 2021-09-06
  • 2021-05-15
  • 2021-12-04
  • 2021-11-24
相关资源
相似解决方案